Home | History | Annotate | Download | only in Support

Lines Matching full:rounding_mode

1221 APFloat::handleOverflow(roundingMode rounding_mode)
1224 if (rounding_mode == rmNearestTiesToEven ||
1225 rounding_mode == rmNearestTiesToAway ||
1226 (rounding_mode == rmTowardPositive && !sign) ||
1227 (rounding_mode == rmTowardNegative && sign)) {
1247 APFloat::roundAwayFromZero(roundingMode rounding_mode,
1257 switch (rounding_mode) {
1284 APFloat::normalize(roundingMode rounding_mode,
1305 return handleOverflow(rounding_mode);
1337 /* Now round the number according to rounding_mode given the lost
1351 if (roundAwayFromZero(rounding_mode, lost_fraction, 0)) {
1666 APFloat::addOrSubtract(const APFloat &rhs, roundingMode rounding_mode,
1678 fs = normalize(rounding_mode, lost_fraction);
1689 sign = (rounding_mode == rmTowardNegative);
1697 APFloat::add(const APFloat &rhs, roundingMode rounding_mode)
1699 return addOrSubtract(rhs, rounding_mode, false);
1704 APFloat::subtract(const APFloat &rhs, roundingMode rounding_mode)
1706 return addOrSubtract(rhs, rounding_mode, true);
1711 APFloat::multiply(const APFloat &rhs, roundingMode rounding_mode)
1720 fs = normalize(rounding_mode, lost_fraction);
1730 APFloat::divide(const APFloat &rhs, roundingMode rounding_mode)
1739 fs = normalize(rounding_mode, lost_fraction);
1828 roundingMode rounding_mode)
1843 fs = normalize(rounding_mode, lost_fraction);
1851 sign = (rounding_mode == rmTowardNegative);
1863 fs = addOrSubtract(addend, rounding_mode, false);
1870 APFloat::opStatus APFloat::roundToIntegral(roundingMode rounding_mode) {
1898 fs = add(MagicConstant, rounding_mode);
1902 fs = subtract(MagicConstant, rounding_mode);
1994 roundingMode rounding_mode, bool *losesInfo)
2066 fs = normalize(rounding_mode, lostFraction);
2102 roundingMode rounding_mode,
2161 roundAwayFromZero(rounding_mode, lost_fraction, truncatedBits)) {
2214 roundingMode rounding_mode, bool *isExact) const
2218 fs = convertToSignExtendedInteger(parts, width, isSigned, rounding_mode,
2247 roundingMode rounding_mode, bool *isExact) const
2252 parts.data(), bitWidth, result.isSigned(), rounding_mode, isExact);
2259 rounding according to ROUNDING_MODE. The sign of the floating
2264 roundingMode rounding_mode)
2289 return normalize(rounding_mode, lost_fraction);
2295 roundingMode rounding_mode)
2306 return convertFromUnsignedParts(api.getRawData(), partCount, rounding_mode);
2310 rounding according to ROUNDING_MODE. ISSIGNED is true if the
2316 roundingMode rounding_mode)
2329 status = convertFromUnsignedParts(copy, srcCount, rounding_mode);
2333 status = convertFromUnsignedParts(src, srcCount, rounding_mode);
2343 roundingMode rounding_mode)
2354 return convertFromUnsignedParts(api.getRawData(), partCount, rounding_mode);
2358 APFloat::convertFromHexadecimalString(StringRef s, roundingMode rounding_mode)
2434 return normalize(rounding_mode, lost_fraction);
2440 roundingMode rounding_mode)
2447 isNearest = (rounding_mode == rmNearestTiesToEven ||
2448 rounding_mode == rmNearestTiesToAway);
2517 return normalize(rounding_mode, calcLostFraction);
2523 APFloat::convertFromDecimalString(StringRef str, roundingMode rounding_mode)
2563 fs = handleOverflow(rounding_mode);
2575 fs = normalize(rounding_mode, lfLessThanHalf);
2581 fs = handleOverflow(rounding_mode);
2632 D.exponent, rounding_mode);
2666 APFloat::convertFromString(StringRef str, roundingMode rounding_mode)
2687 rounding_mode);
2690 return convertFromDecimalString(StringRef(p, slen), rounding_mode);
2719 bool upperCase, roundingMode rounding_mode) const
2752 dst = convertNormalToHexString (dst, hexDigits, upperCase, rounding_mode);
2768 roundingMode rounding_mode) const
2806 roundUp = roundAwayFromZero(rounding_mode, fraction, bits);