Lines Matching refs:rounding_mode

1310 IEEEFloat::opStatus IEEEFloat::handleOverflow(roundingMode rounding_mode) {  in handleOverflow()  argument
1312 if (rounding_mode == rmNearestTiesToEven || in handleOverflow()
1313 rounding_mode == rmNearestTiesToAway || in handleOverflow()
1314 (rounding_mode == rmTowardPositive && !sign) || in handleOverflow()
1315 (rounding_mode == rmTowardNegative && sign)) { in handleOverflow()
1334 bool IEEEFloat::roundAwayFromZero(roundingMode rounding_mode, in roundAwayFromZero() argument
1343 switch (rounding_mode) { in roundAwayFromZero()
1372 IEEEFloat::opStatus IEEEFloat::normalize(roundingMode rounding_mode, in normalize() argument
1392 return handleOverflow(rounding_mode); in normalize()
1438 if (roundAwayFromZero(rounding_mode, lost_fraction, 0)) { in normalize()
1777 roundingMode rounding_mode, in addOrSubtract() argument
1788 fs = normalize(rounding_mode, lost_fraction); in addOrSubtract()
1799 sign = (rounding_mode == rmTowardNegative); in addOrSubtract()
1807 roundingMode rounding_mode) { in add() argument
1808 return addOrSubtract(rhs, rounding_mode, false); in add()
1813 roundingMode rounding_mode) { in subtract() argument
1814 return addOrSubtract(rhs, rounding_mode, true); in subtract()
1819 roundingMode rounding_mode) { in multiply() argument
1827 fs = normalize(rounding_mode, lost_fraction); in multiply()
1837 roundingMode rounding_mode) { in divide() argument
1845 fs = normalize(rounding_mode, lost_fraction); in divide()
1982 roundingMode rounding_mode) { in fusedMultiplyAdd() argument
1996 fs = normalize(rounding_mode, lost_fraction); in fusedMultiplyAdd()
2004 sign = (rounding_mode == rmTowardNegative); in fusedMultiplyAdd()
2016 fs = addOrSubtract(addend, rounding_mode, false); in fusedMultiplyAdd()
2023 IEEEFloat::opStatus IEEEFloat::roundToIntegral(roundingMode rounding_mode) { in roundToIntegral() argument
2095 fs = add(MagicConstant, rounding_mode); in roundToIntegral()
2099 subtract(MagicConstant, rounding_mode); in roundToIntegral()
2188 roundingMode rounding_mode, in convert() argument
2267 fs = normalize(rounding_mode, lostFraction); in convert()
2306 roundingMode rounding_mode, bool *isExact) const { in convertToSignExtendedInteger() argument
2366 roundAwayFromZero(rounding_mode, lost_fraction, truncatedBits)) { in convertToSignExtendedInteger()
2420 roundingMode rounding_mode, bool *isExact) const { in convertToInteger() argument
2423 fs = convertToSignExtendedInteger(parts, width, isSigned, rounding_mode, in convertToInteger()
2451 const integerPart *src, unsigned int srcCount, roundingMode rounding_mode) { in convertFromUnsignedParts() argument
2475 return normalize(rounding_mode, lost_fraction); in convertFromUnsignedParts()
2479 roundingMode rounding_mode) { in convertFromAPInt() argument
2489 return convertFromUnsignedParts(api.getRawData(), partCount, rounding_mode); in convertFromAPInt()
2498 roundingMode rounding_mode) { in convertFromSignExtendedInteger() argument
2510 status = convertFromUnsignedParts(copy, srcCount, rounding_mode); in convertFromSignExtendedInteger()
2514 status = convertFromUnsignedParts(src, srcCount, rounding_mode); in convertFromSignExtendedInteger()
2524 roundingMode rounding_mode) { in convertFromZeroExtendedInteger() argument
2534 return convertFromUnsignedParts(api.getRawData(), partCount, rounding_mode); in convertFromZeroExtendedInteger()
2539 roundingMode rounding_mode) { in convertFromHexadecimalString() argument
2628 return normalize(rounding_mode, lost_fraction); in convertFromHexadecimalString()
2634 roundingMode rounding_mode) { in roundSignificandWithExponent() argument
2640 isNearest = (rounding_mode == rmNearestTiesToEven || in roundSignificandWithExponent()
2641 rounding_mode == rmNearestTiesToAway); in roundSignificandWithExponent()
2711 return normalize(rounding_mode, calcLostFraction); in roundSignificandWithExponent()
2717 IEEEFloat::convertFromDecimalString(StringRef str, roundingMode rounding_mode) { in convertFromDecimalString() argument
2757 fs = handleOverflow(rounding_mode); in convertFromDecimalString()
2769 fs = normalize(rounding_mode, lfLessThanHalf); in convertFromDecimalString()
2775 fs = handleOverflow(rounding_mode); in convertFromDecimalString()
2829 D.exponent, rounding_mode); in convertFromDecimalString()
2908 IEEEFloat::convertFromString(StringRef str, roundingMode rounding_mode) { in convertFromString() argument
2931 rounding_mode); in convertFromString()
2934 return convertFromDecimalString(StringRef(p, slen), rounding_mode); in convertFromString()
2963 roundingMode rounding_mode) const { in convertToHexString()
2995 dst = convertNormalToHexString (dst, hexDigits, upperCase, rounding_mode); in convertToHexString()
3010 roundingMode rounding_mode) const { in convertNormalToHexString()
3047 roundUp = roundAwayFromZero(rounding_mode, fraction, bits); in convertNormalToHexString()
4891 roundingMode rounding_mode, in convertToInteger() argument
4896 rounding_mode, isExact); in convertToInteger()