Lines Matching refs:rounding_mode
1506 IEEEFloat::opStatus IEEEFloat::handleOverflow(roundingMode rounding_mode) { in handleOverflow() argument
1508 if (rounding_mode == rmNearestTiesToEven || in handleOverflow()
1509 rounding_mode == rmNearestTiesToAway || in handleOverflow()
1510 (rounding_mode == rmTowardPositive && !sign) || in handleOverflow()
1511 (rounding_mode == rmTowardNegative && sign)) { in handleOverflow()
1536 bool IEEEFloat::roundAwayFromZero(roundingMode rounding_mode, in roundAwayFromZero() argument
1545 switch (rounding_mode) { in roundAwayFromZero()
1574 IEEEFloat::opStatus IEEEFloat::normalize(roundingMode rounding_mode, in normalize() argument
1594 return handleOverflow(rounding_mode); in normalize()
1631 return handleOverflow(rounding_mode); in normalize()
1650 if (roundAwayFromZero(rounding_mode, lost_fraction, 0)) { in normalize()
1679 return handleOverflow(rounding_mode); in normalize()
2008 roundingMode rounding_mode, in addOrSubtract() argument
2019 fs = normalize(rounding_mode, lost_fraction); in addOrSubtract()
2030 sign = (rounding_mode == rmTowardNegative); in addOrSubtract()
2041 roundingMode rounding_mode) { in add() argument
2042 return addOrSubtract(rhs, rounding_mode, false); in add()
2047 roundingMode rounding_mode) { in subtract() argument
2048 return addOrSubtract(rhs, rounding_mode, true); in subtract()
2053 roundingMode rounding_mode) { in multiply() argument
2063 fs = normalize(rounding_mode, lost_fraction); in multiply()
2073 roundingMode rounding_mode) { in divide() argument
2083 fs = normalize(rounding_mode, lost_fraction); in divide()
2231 roundingMode rounding_mode) { in fusedMultiplyAdd() argument
2245 fs = normalize(rounding_mode, lost_fraction); in fusedMultiplyAdd()
2253 sign = (rounding_mode == rmTowardNegative); in fusedMultiplyAdd()
2268 fs = addOrSubtract(addend, rounding_mode, false); in fusedMultiplyAdd()
2275 IEEEFloat::opStatus IEEEFloat::roundToIntegral(roundingMode rounding_mode) { in roundToIntegral() argument
2347 fs = add(MagicConstant, rounding_mode); in roundToIntegral()
2351 subtract(MagicConstant, rounding_mode); in roundToIntegral()
2440 roundingMode rounding_mode, in convert() argument
2522 fs = normalize(rounding_mode, lostFraction); in convert()
2587 roundingMode rounding_mode, bool *isExact) const { in convertToSignExtendedInteger() argument
2647 roundAwayFromZero(rounding_mode, lost_fraction, truncatedBits)) { in convertToSignExtendedInteger()
2701 roundingMode rounding_mode, bool *isExact) const { in convertToInteger() argument
2704 fs = convertToSignExtendedInteger(parts, width, isSigned, rounding_mode, in convertToInteger()
2732 const integerPart *src, unsigned int srcCount, roundingMode rounding_mode) { in convertFromUnsignedParts() argument
2756 return normalize(rounding_mode, lost_fraction); in convertFromUnsignedParts()
2760 roundingMode rounding_mode) { in convertFromAPInt() argument
2770 return convertFromUnsignedParts(api.getRawData(), partCount, rounding_mode); in convertFromAPInt()
2779 roundingMode rounding_mode) { in convertFromSignExtendedInteger() argument
2791 status = convertFromUnsignedParts(copy, srcCount, rounding_mode); in convertFromSignExtendedInteger()
2795 status = convertFromUnsignedParts(src, srcCount, rounding_mode); in convertFromSignExtendedInteger()
2805 roundingMode rounding_mode) { in convertFromZeroExtendedInteger() argument
2815 return convertFromUnsignedParts(api.getRawData(), partCount, rounding_mode); in convertFromZeroExtendedInteger()
2820 roundingMode rounding_mode) { in convertFromHexadecimalString() argument
2909 return normalize(rounding_mode, lost_fraction); in convertFromHexadecimalString()
2915 roundingMode rounding_mode) { in roundSignificandWithExponent() argument
2921 isNearest = (rounding_mode == rmNearestTiesToEven || in roundSignificandWithExponent()
2922 rounding_mode == rmNearestTiesToAway); in roundSignificandWithExponent()
2992 return normalize(rounding_mode, calcLostFraction); in roundSignificandWithExponent()
2998 IEEEFloat::convertFromDecimalString(StringRef str, roundingMode rounding_mode) { in convertFromDecimalString() argument
3040 fs = handleOverflow(rounding_mode); in convertFromDecimalString()
3052 fs = normalize(rounding_mode, lfLessThanHalf); in convertFromDecimalString()
3058 fs = handleOverflow(rounding_mode); in convertFromDecimalString()
3112 D.exponent, rounding_mode); in convertFromDecimalString()
3191 IEEEFloat::convertFromString(StringRef str, roundingMode rounding_mode) { in convertFromString() argument
3214 rounding_mode); in convertFromString()
3217 return convertFromDecimalString(StringRef(p, slen), rounding_mode); in convertFromString()
3246 roundingMode rounding_mode) const { in convertToHexString()
3278 dst = convertNormalToHexString (dst, hexDigits, upperCase, rounding_mode); in convertToHexString()
3293 roundingMode rounding_mode) const { in convertNormalToHexString()
3330 roundUp = roundAwayFromZero(rounding_mode, fraction, bits); in convertNormalToHexString()
5244 roundingMode rounding_mode, in convertToInteger() argument
5249 rounding_mode, isExact); in convertToInteger()