Lines Matching refs:rounding_mode
1119 APFloat::handleOverflow(roundingMode rounding_mode) in handleOverflow() argument
1122 if (rounding_mode == rmNearestTiesToEven || in handleOverflow()
1123 rounding_mode == rmNearestTiesToAway || in handleOverflow()
1124 (rounding_mode == rmTowardPositive && !sign) || in handleOverflow()
1125 (rounding_mode == rmTowardNegative && sign)) { in handleOverflow()
1145 APFloat::roundAwayFromZero(roundingMode rounding_mode, in roundAwayFromZero() argument
1155 switch (rounding_mode) { in roundAwayFromZero()
1182 APFloat::normalize(roundingMode rounding_mode, in normalize() argument
1203 return handleOverflow(rounding_mode); in normalize()
1249 if (roundAwayFromZero(rounding_mode, lost_fraction, 0)) { in normalize()
1559 APFloat::addOrSubtract(const APFloat &rhs, roundingMode rounding_mode, in addOrSubtract() argument
1573 fs = normalize(rounding_mode, lost_fraction); in addOrSubtract()
1584 sign = (rounding_mode == rmTowardNegative); in addOrSubtract()
1592 APFloat::add(const APFloat &rhs, roundingMode rounding_mode) in add() argument
1594 return addOrSubtract(rhs, rounding_mode, false); in add()
1599 APFloat::subtract(const APFloat &rhs, roundingMode rounding_mode) in subtract() argument
1601 return addOrSubtract(rhs, rounding_mode, true); in subtract()
1606 APFloat::multiply(const APFloat &rhs, roundingMode rounding_mode) in multiply() argument
1616 fs = normalize(rounding_mode, lost_fraction); in multiply()
1626 APFloat::divide(const APFloat &rhs, roundingMode rounding_mode) in divide() argument
1636 fs = normalize(rounding_mode, lost_fraction); in divide()
1684 APFloat::mod(const APFloat &rhs, roundingMode rounding_mode) in mod() argument
1710 fs = V.multiply(rhs, rounding_mode); in mod()
1713 fs = subtract(V, rounding_mode); in mod()
1727 roundingMode rounding_mode) in fusedMultiplyAdd() argument
1744 fs = normalize(rounding_mode, lost_fraction); in fusedMultiplyAdd()
1752 sign = (rounding_mode == rmTowardNegative); in fusedMultiplyAdd()
1764 fs = addOrSubtract(addend, rounding_mode, false); in fusedMultiplyAdd()
1771 APFloat::opStatus APFloat::roundToIntegral(roundingMode rounding_mode) { in roundToIntegral() argument
1800 fs = add(MagicConstant, rounding_mode); in roundToIntegral()
1804 fs = subtract(MagicConstant, rounding_mode); in roundToIntegral()
1897 roundingMode rounding_mode, bool *losesInfo) in convert() argument
1954 fs = normalize(rounding_mode, lostFraction); in convert()
1984 roundingMode rounding_mode, in convertToSignExtendedInteger() argument
2045 roundAwayFromZero(rounding_mode, lost_fraction, truncatedBits)) { in convertToSignExtendedInteger()
2098 roundingMode rounding_mode, bool *isExact) const in convertToInteger() argument
2102 fs = convertToSignExtendedInteger(parts, width, isSigned, rounding_mode, in convertToInteger()
2131 roundingMode rounding_mode, bool *isExact) const in convertToInteger() argument
2136 parts.data(), bitWidth, result.isSigned(), rounding_mode, isExact); in convertToInteger()
2148 roundingMode rounding_mode) in convertFromUnsignedParts() argument
2174 return normalize(rounding_mode, lost_fraction); in convertFromUnsignedParts()
2180 roundingMode rounding_mode) in convertFromAPInt() argument
2191 return convertFromUnsignedParts(api.getRawData(), partCount, rounding_mode); in convertFromAPInt()
2201 roundingMode rounding_mode) in convertFromSignExtendedInteger() argument
2215 status = convertFromUnsignedParts(copy, srcCount, rounding_mode); in convertFromSignExtendedInteger()
2219 status = convertFromUnsignedParts(src, srcCount, rounding_mode); in convertFromSignExtendedInteger()
2229 roundingMode rounding_mode) in convertFromZeroExtendedInteger() argument
2240 return convertFromUnsignedParts(api.getRawData(), partCount, rounding_mode); in convertFromZeroExtendedInteger()
2244 APFloat::convertFromHexadecimalString(StringRef s, roundingMode rounding_mode) in convertFromHexadecimalString() argument
2330 return normalize(rounding_mode, lost_fraction); in convertFromHexadecimalString()
2336 roundingMode rounding_mode) in roundSignificandWithExponent() argument
2343 isNearest = (rounding_mode == rmNearestTiesToEven || in roundSignificandWithExponent()
2344 rounding_mode == rmNearestTiesToAway); in roundSignificandWithExponent()
2413 return normalize(rounding_mode, calcLostFraction); in roundSignificandWithExponent()
2419 APFloat::convertFromDecimalString(StringRef str, roundingMode rounding_mode) in convertFromDecimalString() argument
2452 fs = handleOverflow(rounding_mode); in convertFromDecimalString()
2463 fs = normalize(rounding_mode, lfLessThanHalf); in convertFromDecimalString()
2469 fs = handleOverflow(rounding_mode); in convertFromDecimalString()
2520 D.exponent, rounding_mode); in convertFromDecimalString()
2529 APFloat::convertFromString(StringRef str, roundingMode rounding_mode) in convertFromString() argument
2547 rounding_mode); in convertFromString()
2550 return convertFromDecimalString(StringRef(p, slen), rounding_mode); in convertFromString()
2579 bool upperCase, roundingMode rounding_mode) const in convertToHexString()
2614 dst = convertNormalToHexString (dst, hexDigits, upperCase, rounding_mode); in convertToHexString()
2630 roundingMode rounding_mode) const in convertNormalToHexString()
2668 roundUp = roundAwayFromZero(rounding_mode, fraction, bits); in convertNormalToHexString()