Home | History | Annotate | Download | only in i18n

Lines Matching full:rounding

144 /* 5. Rounding is deferred until finalization of results, with any    */
147 /* rounding when more than one shortening takes place (for */
154 /* This must be called before any rounding if the number of digits */
486 /* rounding mode if overflow occurs or rounding is */
491 /* Overflow) can be reported or rounding applied, as necessary. */
512 Int residue; /* rounding residue */
656 /* a temporary units array if rounding is needed */
658 else { /* rounding needed */
709 else { /* no rounding, but may still have overflow or subnormal */
1035 /* set is the context; note that rounding mode has no effect */
1096 /* This computes D = (A * B) + C with only one rounding */
1252 /* set is the context; note that rounding mode has no effect */
1371 /* set is the context; note that rounding mode has no effect */
1879 /* check operands and apply rounding and overflow/underflow testing. */
1967 Int residue=0; /* rounding residue */
1997 /* [following code does not require input rounding] */
2170 /* and drop through for final rounding */
2279 /* of C (by rounding or shifting) such that the exponent (-scale) */
2281 /* except for the effects of any rounding that occurred. */
2342 /* [following code does not require input rounding] */
2368 /* of C (by rounding or shifting) such that the exponent (-scale) */
2370 /* except for the effects of any rounding that occurred. */
2738 /* set is the context; note that rounding mode has no effect */
2785 /* % of f; to ensure proper rounding, compare squares of (approx - */
2809 Int residue=0; /* rounding residue */
2853 /* [following code does not require input rounding] */
2892 workp=MAXI(set->digits+1, rhs->digits); /* actual rounding precision */
3014 /* rounded square root of f; to ensure proper rounding, compare */
3049 /* [no errors are possible in the above, and rounding/inexact during */
3055 /* count droppable zeros [after any subnormal rounding] by */
3173 /* The context is used for rounding mode and status after sNaN, but */
3197 workset=*set; /* clone rounding, etc. */
3198 workset.digits=rhs->digits; /* no length rounding */
3813 Int residue; /* rounding accumulator */
3844 /* [following code does not require input rounding] */
3885 /* 0-0 gives +0 unless rounding to -infinity, and -0-0 gives -0 */
3940 /* is all in one unit, no operand rounding is needed, and no carry, */
3978 /* needed; then apply rounding (as exotic rounding modes may be */
4005 residue=1; /* residue for rounding */
4076 /* fit, so can't need rounding and residue must be 0.) */
4082 /* remove leading zeros that were added due to rounding up to */
4083 /* integral Units -- before the test for rounding. */
4094 /* leading zero could be included in the rounding.) */
4100 /* remove leading zeros that added due to rounding up to */
4102 /* maxdigits length, unless extended) before test for rounding. */
4109 /* Now apply rounding if needed before removing leading zeros. */
4122 /* apply checks and rounding */
4126 /* zero, the sign of that sum shall be '+' in all rounding modes */
4169 /* Remainder operators and division residues for exact rounding are */
4248 Int residue; /* for rounding */
4281 /* [following code does not require input rounding] */
4421 /* +1 -- for rounding of slide to right */
4617 /* record the presence of any residue, for rounding */
4842 Int residue=0; /* rounding residue */
4945 /* [following code does not require input rounding] */
5131 /* Set the coefficient. If any rounding, residue records */
5155 /* set is the context; note that rounding mode has no effect */
5232 Int residue; /* rounding residue */
5487 aset.digits=set->digits; /* [use default rounding] */
5533 /* set is the context; note that rounding mode has no effect */
5591 Int residue; /* rounding residue */
5762 /* accumulator after this is the final rounding (but note that */
5798 aset.digits=set->digits; /* [use default rounding] */
5813 /* of C (by rounding or shifting) such that the exponent (-scale) */
5816 /* any rounding that occurred. */
5841 Int residue=0; /* rounding residue */
5864 /* [following code does not require input rounding] */
5919 workset=*set; /* clone rounding, etc. */
6034 /* [following code does not require input rounding] */
6113 Int residue=0; /* rounding accumulator */
6145 /* copy chosen to result, rounding if need be */
6811 Int residue=0; /* rounding accumulator */
6836 /* set is the context [used for length (digits) and rounding mode] */
6886 /* can be adjusted in the range [-1, +1] and achieve correct rounding */
7039 /* decApplyRound -- apply pending rounding to a number */
7042 /* set is the context [for size and rounding mode] */
7043 /* residue indicates pending rounding, being any accumulated */
7045 /* 6-9: rounding digit is >5 */
7046 /* 5: rounding digit is exactly half-way */
7047 /* 1-4: rounding digit is <5 and >0 */
7056 /* This routine applies rounding while keeping the length of the */
7143 printf("Unknown rounding mode: %d\n", set->round);
7228 /* residue is the rounding accumulator (as in decApplyRound) */
7265 /* residue is the rounding accumulator (as in decApplyRound) */
7269 /* results, applying any pending rounding, checking for overflow, */
7341 /* set is the context [used for the rounding mode, etc.] */
7346 /* dn and the rounding mode, following IEEE 754 rules. */
7416 /* set is the context [used for the rounding mode] */
7474 workset=*set; /* clone rounding, etc. */