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 */
1886 /* check operands and apply rounding and overflow/underflow testing. */
1974 Int residue=0; /* rounding residue */
2004 /* [following code does not require input rounding] */
2177 /* and drop through for final rounding */
2286 /* of C (by rounding or shifting) such that the exponent (-scale) */
2288 /* except for the effects of any rounding that occurred. */
2349 /* [following code does not require input rounding] */
2375 /* of C (by rounding or shifting) such that the exponent (-scale) */
2377 /* except for the effects of any rounding that occurred. */
2745 /* set is the context; note that rounding mode has no effect */
2792 /* % of f; to ensure proper rounding, compare squares of (approx - */
2820 Int residue=0; /* rounding residue */
2864 /* [following code does not require input rounding] */
2903 workp=MAXI(set->digits+1, rhs->digits); /* actual rounding precision */
3025 /* rounded square root of f; to ensure proper rounding, compare */
3060 /* [no errors are possible in the above, and rounding/inexact during */
3066 /* count droppable zeros [after any subnormal rounding] by */
3187 rounding mode and status after sNaN, but */
3211 workset=*set; /* clone rounding, etc. */
3212 workset.digits=rhs->digits; /* no length rounding */
3827 Int residue; /* rounding accumulator */
3858 rounding] */
3899 /* 0-0 gives +0 unless rounding to -infinity, and -0-0 gives -0 */
3954 /* is all in one unit, no operand rounding is needed, and no carry, */
3992 /* needed; then apply rounding (as exotic rounding modes may be */
4019 residue=1; /* residue for rounding */
4090 /* fit, so can't need rounding and residue must be 0.) */
4096 /* remove leading zeros that were added due to rounding up to */
4097 /* integral Units -- before the test for rounding. */
4108 /* leading zero could be included in the rounding.) */
4114 /* remove leading zeros that added due to rounding up to */
4116 /* maxdigits length, unless extended) before test for rounding. */
4123 /* Now apply rounding if needed before removing leading zeros. */
4136 /* apply checks and rounding */
4140 /* zero, the sign of that sum shall be '+' in all rounding modes */
4183 /* Remainder operators and division residues for exact rounding are */
4262 Int residue; /* for rounding */
4295 /* [following code does not require input rounding] */
4435 /* +1 -- for rounding of slide to right */
4631 /* record the presence of any residue, for rounding */
4856 Int residue=0; /* rounding residue */
4959 /* [following code does not require input rounding] */
5145 /* Set the coefficient. If any rounding, residue records */
5169 /* set is the context; note that rounding mode has no effect */
5246 Int residue; /* rounding residue */
5501 aset.digits=set->digits; /* [use default rounding] */
5547 /* set is the context; note that rounding mode has no effect */
5609 Int residue; /* rounding residue */
5780 /* accumulator after this is the final rounding (but note that */
5816 aset.digits=set->digits; /* [use default rounding] */
5834 /* of C (by rounding or shifting) such that the exponent (-scale) */
5837 /* any rounding that occurred. */
5862 Int residue=0; /* rounding residue */
5885 /* [following code does not require input rounding] */
5940 workset=*set; /* clone rounding, etc. */
6055 /* [following code does not require input rounding] */
6134 Int residue=0; /* rounding accumulator */
6166 /* copy chosen to result, rounding if need be */
6832 Int residue=0; /* rounding accumulator */
6857 /* set is the context [used for length (digits) and rounding mode] */
6907 /* can be adjusted in the range [-1, +1] and achieve correct rounding */
7060 /* decApplyRound -- apply pending rounding to a number */
7063 /* set is the context [for size and rounding mode] */
7064 /* residue indicates pending rounding, being any accumulated */
7066 /* 6-9: rounding digit is >5 */
7067 /* 5: rounding digit is exactly half-way */
7068 /* 1-4: rounding digit is <5 and >0 */
7077 /* This routine applies rounding while keeping the length of the */
7164 printf("Unknown rounding mode: %d\n", set->round);
7249 /* residue is the rounding accumulator (as in decApplyRound) */
7286 /* residue is the rounding accumulator (as in decApplyRound) */
7290 /* results, applying any pending rounding, checking for overflow, */
7362 /* set is the context [used for the rounding mode, etc.] */
7367 /* dn and the rounding mode, following IEEE 754 rules. */
7437 /* set is the context [used for the rounding mode] */
7495 workset=*set; /* clone rounding, etc. */