Lines Matching defs:rounding_mode
1574 APFloat::opStatus IEEEFloat::handleOverflow(roundingMode rounding_mode) {
1577 if (rounding_mode == rmNearestTiesToEven ||
1578 rounding_mode == rmNearestTiesToAway ||
1579 (rounding_mode == rmTowardPositive && !sign) ||
1580 (rounding_mode == rmTowardNegative && sign)) {
1606 bool IEEEFloat::roundAwayFromZero(roundingMode rounding_mode,
1615 switch (rounding_mode) {
1644 APFloat::opStatus IEEEFloat::normalize(roundingMode rounding_mode,
1664 return handleOverflow(rounding_mode);
1701 return handleOverflow(rounding_mode);
1703 /* Now round the number according to rounding_mode given the lost
1722 if (roundAwayFromZero(rounding_mode, lost_fraction, 0)) {
1751 return handleOverflow(rounding_mode);
2089 roundingMode rounding_mode,
2100 fs = normalize(rounding_mode, lost_fraction);
2111 sign = (rounding_mode == rmTowardNegative);
2122 roundingMode rounding_mode) {
2123 return addOrSubtract(rhs, rounding_mode, false);
2128 roundingMode rounding_mode) {
2129 return addOrSubtract(rhs, rounding_mode, true);
2134 roundingMode rounding_mode) {
2144 fs = normalize(rounding_mode, lost_fraction);
2154 roundingMode rounding_mode) {
2164 fs = normalize(rounding_mode, lost_fraction);
2323 roundingMode rounding_mode) {
2337 fs = normalize(rounding_mode, lost_fraction);
2345 sign = (rounding_mode == rmTowardNegative);
2360 fs = addOrSubtract(addend, rounding_mode, false);
2367 APFloat::opStatus IEEEFloat::roundToIntegral(roundingMode rounding_mode) {
2440 fs = add(MagicConstant, rounding_mode);
2444 subtract(MagicConstant, rounding_mode);
2532 roundingMode rounding_mode,
2614 fs = normalize(rounding_mode, lostFraction);
2681 roundingMode rounding_mode, bool *isExact) const {
2741 roundAwayFromZero(rounding_mode, lost_fraction, truncatedBits)) {
2795 roundingMode rounding_mode, bool *isExact) const {
2798 fs = convertToSignExtendedInteger(parts, width, isSigned, rounding_mode,
2826 const integerPart *src, unsigned int srcCount, roundingMode rounding_mode) {
2850 return normalize(rounding_mode, lost_fraction);
2854 roundingMode rounding_mode) {
2864 return convertFromUnsignedParts(api.getRawData(), partCount, rounding_mode);
2873 roundingMode rounding_mode) {
2885 status = convertFromUnsignedParts(copy, srcCount, rounding_mode);
2889 status = convertFromUnsignedParts(src, srcCount, rounding_mode);
2899 roundingMode rounding_mode) {
2909 return convertFromUnsignedParts(api.getRawData(), partCount, rounding_mode);
2914 roundingMode rounding_mode) {
3003 return normalize(rounding_mode, lost_fraction);
3009 roundingMode rounding_mode) {
3015 isNearest = (rounding_mode == rmNearestTiesToEven ||
3016 rounding_mode == rmNearestTiesToAway);
3086 return normalize(rounding_mode, calcLostFraction);
3092 IEEEFloat::convertFromDecimalString(StringRef str, roundingMode rounding_mode) {
3136 fs = handleOverflow(rounding_mode);
3148 fs = normalize(rounding_mode, lfLessThanHalf);
3154 fs = handleOverflow(rounding_mode);
3208 D.exponent, rounding_mode);
3287 IEEEFloat::convertFromString(StringRef str, roundingMode rounding_mode) {
3314 rounding_mode);
3317 return convertFromDecimalString(StringRef(p, slen), rounding_mode);
3346 roundingMode rounding_mode) const {
3378 dst = convertNormalToHexString (dst, hexDigits, upperCase, rounding_mode);
3393 roundingMode rounding_mode) const {
3430 roundUp = roundAwayFromZero(rounding_mode, fraction, bits);
5514 roundingMode rounding_mode,
5519 rounding_mode, isExact);