Lines Matching refs:Rounding
24 * necessary to specify double-precision (53-bit) rounding precision
39 * biased rounding (add half and chop).
76 * is also #defined, fegetround() will be queried for the rounding mode.
87 * #define ROUND_BIASED for IEEE-format with biased rounding.
389 #define Rounding Flt_Rounds
485 BCinfo { int dp0, dp1, dplen, dsign, e0, inexact, nd, nd0, rounding, scale, uflchk; };
1693 enum { /* rounding values: same as FLT_ROUNDS */
1733 gethex(sp, rvp, rounding, sign)
1734 CONST char **sp; U *rvp; int rounding, sign;
1736 gethex( CONST char **sp, U *rvp, int rounding, int sign)
1869 switch(rounding) {
1891 switch(rounding) {
1979 switch (rounding) {
2015 switch(rounding) {
2061 switch(rounding) {
2255 if (bc->rounding == 1)
2290 if (bc->rounding != 1) {
2366 if (bc->rounding != 1) {
2368 if (bc->rounding == 0) {
2376 if (bc->rounding == 0) {
2446 bc.rounding = Flt_Rounds;
2448 bc.rounding = 1;
2450 case FE_TOWARDZERO: bc.rounding = 0; break;
2451 case FE_UPWARD: bc.rounding = 2; break;
2452 case FE_DOWNWARD: bc.rounding = 3;
2489 gethex(&s, &rv, bc.rounding, sign);
2737 if (bc.rounding >= 2) {
2739 bc.rounding = bc.rounding == 2 ? 0 : 2;
2741 if (bc.rounding != 2)
2742 bc.rounding = 0;
2761 switch(bc.rounding) {
2920 if (bc.rounding != 1)
2982 if (bc.rounding != 1) {
2995 if (bc.rounding != 1) {
3005 if (bc.rounding) {
3051 /* adj = rounding ? ceil(adj) : floor(adj); */
3054 if (!((bc.rounding>>1) ^ bc.dsign))
3249 switch(bc.rounding) {
3330 /* Compute adj so that the IEEE rounding rules will
3499 * when rounding the final digit up. This is often faster.
3580 int Rounding;
3582 Rounding = Flt_Rounds;
3584 Rounding = 1;
3586 case FE_TOWARDZERO: Rounding = 0; break;
3587 case FE_UPWARD: Rounding = 2; break;
3588 case FE_DOWNWARD: Rounding = 3;
3638 if (Rounding >= 2) {
3640 Rounding = Rounding == 2 ? 0 : 2;
3642 if (Rounding != 2)
3643 Rounding = 0;
3737 try_quick = Rounding == 1;
3777 if (mode > 1 && Rounding != 1)
3914 switch(Rounding) {
3982 && Rounding == 1
4069 && Rounding >= 1
4097 switch(Rounding) {
4115 if (!Rounding)
4158 switch(Rounding) {