Home | History | Annotate | Download | only in Support

Lines Matching refs:rounding_mode

1168 rounding_mode)
1171 if (rounding_mode == rmNearestTiesToEven ||
1172 rounding_mode == rmNearestTiesToAway ||
1173 (rounding_mode == rmTowardPositive && !sign) ||
1174 (rounding_mode == rmTowardNegative && sign)) {
1194 APFloat::roundAwayFromZero(roundingMode rounding_mode,
1204 switch (rounding_mode) {
1231 APFloat::normalize(roundingMode rounding_mode,
1252 return handleOverflow(rounding_mode);
1284 /* Now round the number according to rounding_mode given the lost
1298 if (roundAwayFromZero(rounding_mode, lost_fraction, 0)) {
1611 APFloat::addOrSubtract(const APFloat &rhs, roundingMode rounding_mode,
1623 fs = normalize(rounding_mode, lost_fraction);
1634 sign = (rounding_mode == rmTowardNegative);
1642 APFloat::add(const APFloat &rhs, roundingMode rounding_mode)
1644 return addOrSubtract(rhs, rounding_mode, false);
1649 APFloat::subtract(const APFloat &rhs, roundingMode rounding_mode)
1651 return addOrSubtract(rhs, rounding_mode, true);
1656 APFloat::multiply(const APFloat &rhs, roundingMode rounding_mode)
1665 fs = normalize(rounding_mode, lost_fraction);
1675 APFloat::divide(const APFloat &rhs, roundingMode rounding_mode)
1684 fs = normalize(rounding_mode, lost_fraction);
1731 APFloat::mod(const APFloat &rhs, roundingMode rounding_mode)
1756 fs = V.multiply(rhs, rounding_mode);
1759 rounding_mode);
1773 roundingMode rounding_mode)
1788 fs = normalize(rounding_mode, lost_fraction);
1796 sign = (rounding_mode == rmTowardNegative);
1808 fs = addOrSubtract(addend, rounding_mode, false);
1815 APFloat::opStatus APFloat::roundToIntegral(roundingMode rounding_mode) {
1843 fs = add(MagicConstant, rounding_mode);
1847 fs = subtract(MagicConstant, rounding_mode);
1939 roundingMode rounding_mode, bool *losesInfo)
2011 fs = normalize(rounding_mode, lostFraction);
2047 roundingMode rounding_mode,
2106 roundAwayFromZero(rounding_mode, lost_fraction, truncatedBits)) {
2159 roundingMode rounding_mode, bool *isExact) const
2163 fs = convertToSignExtendedInteger(parts, width, isSigned, rounding_mode,
2192 roundingMode rounding_mode, bool *isExact) const
2197 parts.data(), bitWidth, result.isSigned(), rounding_mode, isExact);
2204 rounding according to ROUNDING_MODE. The sign of the floating
2209 roundingMode rounding_mode)
2234 return normalize(rounding_mode, lost_fraction);
2240 roundingMode rounding_mode)
2251 return convertFromUnsignedParts(api.getRawData(), partCount, rounding_mode);
2255 rounding according to ROUNDING_MODE. ISSIGNED is true if the
2261 roundingMode rounding_mode)
2274 status = convertFromUnsignedParts(copy, srcCount, rounding_mode);
2278 status = convertFromUnsignedParts(src, srcCount, rounding_mode);
2288 roundingMode rounding_mode)
2299 return convertFromUnsignedParts(api.getRawData(), partCount, rounding_mode);
2303 APFloat::convertFromHexadecimalString(StringRef s, roundingMode rounding_mode)
2379 return normalize(rounding_mode, lost_fraction);
2385 roundingMode rounding_mode)
2392 isNearest = (rounding_mode == rmNearestTiesToEven ||
2393 rounding_mode == rmNearestTiesToAway);
2462 return normalize(rounding_mode, calcLostFraction);
2468 APFloat::convertFromDecimalString(StringRef str, roundingMode rounding_mode)
2508 fs = handleOverflow(rounding_mode);
2520 fs = normalize(rounding_mode, lfLessThanHalf);
2526 fs = handleOverflow(rounding_mode);
2577 D.exponent, rounding_mode);
2611 APFloat::convertFromString(StringRef str, roundingMode rounding_mode)
2632 rounding_mode);
2635 return convertFromDecimalString(StringRef(p, slen), rounding_mode);
2664 bool upperCase, roundingMode rounding_mode) const
2697 dst = convertNormalToHexString (dst, hexDigits, upperCase, rounding_mode);
2713 roundingMode rounding_mode) const
2751 roundUp = roundAwayFromZero(rounding_mode, fraction, bits);