• Home
  • Raw
  • Download

Lines Matching refs:rounding_mode

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