Lines Matching defs:rounding_mode

1535 IEEEFloat::opStatus IEEEFloat::handleOverflow(roundingMode rounding_mode) {
1538 if (rounding_mode == rmNearestTiesToEven ||
1539 rounding_mode == rmNearestTiesToAway ||
1540 (rounding_mode == rmTowardPositive && !sign) ||
1541 (rounding_mode == rmTowardNegative && sign)) {
1567 bool IEEEFloat::roundAwayFromZero(roundingMode rounding_mode,
1576 switch (rounding_mode) {
1605 IEEEFloat::opStatus IEEEFloat::normalize(roundingMode rounding_mode,
1625 return handleOverflow(rounding_mode);
1662 return handleOverflow(rounding_mode);
1664 /* Now round the number according to rounding_mode given the lost
1681 if (roundAwayFromZero(rounding_mode, lost_fraction, 0)) {
1710 return handleOverflow(rounding_mode);
2039 roundingMode rounding_mode,
2050 fs = normalize(rounding_mode, lost_fraction);
2061 sign = (rounding_mode == rmTowardNegative);
2072 roundingMode rounding_mode) {
2073 return addOrSubtract(rhs, rounding_mode, false);
2078 roundingMode rounding_mode) {
2079 return addOrSubtract(rhs, rounding_mode, true);
2084 roundingMode rounding_mode) {
2094 fs = normalize(rounding_mode, lost_fraction);
2104 roundingMode rounding_mode) {
2114 fs = normalize(rounding_mode, lost_fraction);
2262 roundingMode rounding_mode) {
2276 fs = normalize(rounding_mode, lost_fraction);
2284 sign = (rounding_mode == rmTowardNegative);
2299 fs = addOrSubtract(addend, rounding_mode, false);
2306 IEEEFloat::opStatus IEEEFloat::roundToIntegral(roundingMode rounding_mode) {
2378 fs = add(MagicConstant, rounding_mode);
2382 subtract(MagicConstant, rounding_mode);
2471 roundingMode rounding_mode,
2553 fs = normalize(rounding_mode, lostFraction);
2618 roundingMode rounding_mode, bool *isExact) const {
2678 roundAwayFromZero(rounding_mode, lost_fraction, truncatedBits)) {
2732 roundingMode rounding_mode, bool *isExact) const {
2735 fs = convertToSignExtendedInteger(parts, width, isSigned, rounding_mode,
2763 const integerPart *src, unsigned int srcCount, roundingMode rounding_mode) {
2787 return normalize(rounding_mode, lost_fraction);
2791 roundingMode rounding_mode) {
2801 return convertFromUnsignedParts(api.getRawData(), partCount, rounding_mode);
2810 roundingMode rounding_mode) {
2822 status = convertFromUnsignedParts(copy, srcCount, rounding_mode);
2826 status = convertFromUnsignedParts(src, srcCount, rounding_mode);
2836 roundingMode rounding_mode) {
2846 return convertFromUnsignedParts(api.getRawData(), partCount, rounding_mode);
2851 roundingMode rounding_mode) {
2940 return normalize(rounding_mode, lost_fraction);
2946 roundingMode rounding_mode) {
2952 isNearest = (rounding_mode == rmNearestTiesToEven ||
2953 rounding_mode == rmNearestTiesToAway);
3023 return normalize(rounding_mode, calcLostFraction);
3029 IEEEFloat::convertFromDecimalString(StringRef str, roundingMode rounding_mode) {
3071 fs = handleOverflow(rounding_mode);
3083 fs = normalize(rounding_mode, lfLessThanHalf);
3089 fs = handleOverflow(rounding_mode);
3143 D.exponent, rounding_mode);
3222 IEEEFloat::convertFromString(StringRef str, roundingMode rounding_mode) {
3245 rounding_mode);
3248 return convertFromDecimalString(StringRef(p, slen), rounding_mode);
3277 roundingMode rounding_mode) const {
3309 dst = convertNormalToHexString (dst, hexDigits, upperCase, rounding_mode);
3324 roundingMode rounding_mode) const {
3361 roundUp = roundAwayFromZero(rounding_mode, fraction, bits);
5365 roundingMode rounding_mode,
5370 rounding_mode, isExact);