Home | History | Annotate | Download | only in Support

Lines Matching full:rounding_mode

1186 APFloat::handleOverflow(roundingMode rounding_mode)
1189 if (rounding_mode == rmNearestTiesToEven ||
1190 rounding_mode == rmNearestTiesToAway ||
1191 (rounding_mode == rmTowardPositive && !sign) ||
1192 (rounding_mode == rmTowardNegative && sign)) {
1212 APFloat::roundAwayFromZero(roundingMode rounding_mode,
1222 switch (rounding_mode) {
1249 APFloat::normalize(roundingMode rounding_mode,
1270 return handleOverflow(rounding_mode);
1302 /* Now round the number according to rounding_mode given the lost
1316 if (roundAwayFromZero(rounding_mode, lost_fraction, 0)) {
1631 APFloat::addOrSubtract(const APFloat &rhs, roundingMode rounding_mode,
1643 fs = normalize(rounding_mode, lost_fraction);
1654 sign = (rounding_mode == rmTowardNegative);
1662 APFloat::add(const APFloat &rhs, roundingMode rounding_mode)
1664 return addOrSubtract(rhs, rounding_mode, false);
1669 APFloat::subtract(const APFloat &rhs, roundingMode rounding_mode)
1671 return addOrSubtract(rhs, rounding_mode, true);
1676 APFloat::multiply(const APFloat &rhs, roundingMode rounding_mode)
1685 fs = normalize(rounding_mode, lost_fraction);
1695 APFloat::divide(const APFloat &rhs, roundingMode rounding_mode)
1704 fs = normalize(rounding_mode, lost_fraction);
1751 APFloat::mod(const APFloat &rhs, roundingMode rounding_mode)
1776 fs = V.multiply(rhs, rounding_mode);
1779 fs = subtract(V, rounding_mode);
1793 roundingMode rounding_mode)
1808 fs = normalize(rounding_mode, lost_fraction);
1816 sign = (rounding_mode == rmTowardNegative);
1828 fs = addOrSubtract(addend, rounding_mode, false);
1835 APFloat::opStatus APFloat::roundToIntegral(roundingMode rounding_mode) {
1863 fs = add(MagicConstant, rounding_mode);
1867 fs = subtract(MagicConstant, rounding_mode);
1959 roundingMode rounding_mode, bool *losesInfo)
2031 fs = normalize(rounding_mode, lostFraction);
2067 roundingMode rounding_mode,
2126 roundAwayFromZero(rounding_mode, lost_fraction, truncatedBits)) {
2179 roundingMode rounding_mode, bool *isExact) const
2183 fs = convertToSignExtendedInteger(parts, width, isSigned, rounding_mode,
2212 roundingMode rounding_mode, bool *isExact) const
2217 parts.data(), bitWidth, result.isSigned(), rounding_mode, isExact);
2224 rounding according to ROUNDING_MODE. The sign of the floating
2229 roundingMode rounding_mode)
2254 return normalize(rounding_mode, lost_fraction);
2260 roundingMode rounding_mode)
2271 return convertFromUnsignedParts(api.getRawData(), partCount, rounding_mode);
2275 rounding according to ROUNDING_MODE. ISSIGNED is true if the
2281 roundingMode rounding_mode)
2294 status = convertFromUnsignedParts(copy, srcCount, rounding_mode);
2298 status = convertFromUnsignedParts(src, srcCount, rounding_mode);
2308 roundingMode rounding_mode)
2319 return convertFromUnsignedParts(api.getRawData(), partCount, rounding_mode);
2323 APFloat::convertFromHexadecimalString(StringRef s, roundingMode rounding_mode)
2399 return normalize(rounding_mode, lost_fraction);
2405 roundingMode rounding_mode)
2412 isNearest = (rounding_mode == rmNearestTiesToEven ||
2413 rounding_mode == rmNearestTiesToAway);
2482 return normalize(rounding_mode, calcLostFraction);
2488 APFloat::convertFromDecimalString(StringRef str, roundingMode rounding_mode)
2528 fs = handleOverflow(rounding_mode);
2540 fs = normalize(rounding_mode, lfLessThanHalf);
2546 fs = handleOverflow(rounding_mode);
2597 D.exponent, rounding_mode);
2631 APFloat::convertFromString(StringRef str, roundingMode rounding_mode)
2652 rounding_mode);
2655 return convertFromDecimalString(StringRef(p, slen), rounding_mode);
2684 bool upperCase, roundingMode rounding_mode) const
2717 dst = convertNormalToHexString (dst, hexDigits, upperCase, rounding_mode);
2733 roundingMode rounding_mode) const
2771 roundUp = roundAwayFromZero(rounding_mode, fraction, bits);