Home
last modified time | relevance | path

Searched refs:roundUp (Results 1 – 10 of 10) sorted by relevance

/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/src/c++17/ryu/
H A Dd2fixed.c401 int roundUp = 0; in d2fixed_buffered_n() local
443 roundUp = lastDigit > 5; in d2fixed_buffered_n()
449 roundUp = trailingZeros ? 2 : 1; in d2fixed_buffered_n()
463 printf("roundUp=%d\n", roundUp); in d2fixed_buffered_n()
465 if (roundUp != 0) { in d2fixed_buffered_n()
485 roundUp = 1; in d2fixed_buffered_n()
488 if (roundUp == 2 && c % 2 == 0) { in d2fixed_buffered_n()
652 int roundUp = 0; in d2exp_buffered_n() local
654 roundUp = lastDigit > 5; in d2exp_buffered_n()
666 roundUp = trailingZeros ? 2 : 1; in d2exp_buffered_n()
[all …]
H A Dd2s.c251 bool roundUp = false; in d2d() local
257 roundUp = vrMod100 >= 50; in d2d()
275 roundUp = vrMod10 >= 5; in d2d()
282 printf("%" PRIu64 " roundUp=%s\n", vr, roundUp ? "true" : "false"); in d2d()
286 output = vr + (vr == vm || roundUp); in d2d()
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/math/
H A Dhardware.d560 roundUp, /// ditto
572 roundUp = 0x0800,
575 | roundUp | roundToZero,
584 roundUp = core.stdc.fenv.FE_UPWARD,
587 | roundUp | roundToZero,
1113 fpctrl.rounding = FloatingPointControl.roundUp;
1151 ctrl.rounding = FloatingPointControl.roundUp;
1152 assert(FloatingPointControl.rounding == FloatingPointControl.roundUp);
1194 T u = addRound!(T)(FloatingPointControl.roundUp);
1203 T u = subRound!(T)(FloatingPointControl.roundUp);
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/format/internal/
H A Dwrite.d889 fpctrl.rounding = FloatingPointControl.roundUp;
3850 case FloatingPointControl.roundUp:
3867 bool roundUp = false;
3869 roundUp = type != RoundingClass.ZERO && !negative;
3871 roundUp = type != RoundingClass.ZERO && negative;
3873 roundUp = false;
3876 roundUp = type == RoundingClass.UPPER;
3883 roundUp = true;
3889 roundUp = (last <= '9' && last % 2 != 0) || (last > '9' && last % 2 == 0);
3894 if (!roundUp) return false;
[all …]
H A Dfloats.d540 fpctrl.rounding = FloatingPointControl.roundUp;
1255 fpctrl.rounding = FloatingPointControl.roundUp;
1415 fpctrl.rounding = FloatingPointControl.roundUp;
2028 fpctrl.rounding = FloatingPointControl.roundUp;
2296 case FloatingPointControl.roundUp:
2382 fpctrl.rounding = FloatingPointControl.roundUp;
2627 fpctrl.rounding = FloatingPointControl.roundUp;
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/
H A Dmath.d5101 roundUp, /// ditto
5113 roundUp = 0x0800,
5116 | roundUp | roundToZero,
5125 roundUp = core.stdc.fenv.FE_UPWARD,
5128 | roundUp | roundToZero,
5629 ctrl.rounding = FloatingPointControl.roundUp;
5630 assert(FloatingPointControl.rounding == FloatingPointControl.roundUp);
5660 T u = addRound!(T)(FloatingPointControl.roundUp);
5681 T u = subRound!(T)(FloatingPointControl.roundUp);
H A Duni.d1331 immutable pad_s = roundUp(s); in PackedArrayViewImpl()
1402 immutable pad_start = roundUp(start);// rounded up in PackedArrayViewImpl()
1458 auto roundUp()(size_t val){ return (val+factor-1)/factor*factor; } in PackedArrayViewImpl()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A DAPFloat.cpp2991 bool roundUp; in convertNormalToHexString() local
2996 roundUp = false; in convertNormalToHexString()
3023 roundUp = roundAwayFromZero(rounding_mode, fraction, bits); in convertNormalToHexString()
3056 if (roundUp) { in convertNormalToHexString()
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/uni/
H A Dpackage.d1298 immutable pad_s = roundUp(s); in PackedArrayViewImpl()
1369 immutable pad_start = roundUp(start);// rounded up in PackedArrayViewImpl()
1425 auto roundUp()(size_t val){ return (val+factor-1)/factor*factor; } in PackedArrayViewImpl()
/netbsd-src/external/public-domain/sqlite/dist/
H A Dsqlite3.c162358 int roundUp, /* Round up if true. Round down if false */
162526 if( roundUp ){