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 */
499 /* rounding mode if overflow occurs or rounding is */
504 /* Overflow) can be reported or rounding applied, as necessary. */
525 Int residue; /* rounding residue */
669 /* a temporary units array if rounding is needed */
671 else { /* rounding needed */
722 else { /* no rounding, but may still have overflow or subnormal */
1048 /* set is the context; note that rounding mode has no effect */
1109 /* This computes D = (A * B) + C with only one rounding */
1265 /* set is the context; note that rounding mode has no effect */
1384 /* set is the context; note that rounding mode has no effect */
1899 /* check operands and apply rounding and overflow/underflow testing. */
1987 Int residue=0; /* rounding residue */
2017 /* [following code does not require input rounding] */
2190 /* and drop through for final rounding */
2299 /* of C (by rounding or shifting) such that the exponent (-scale) */
2301 /* except for the effects of any rounding that occurred. */
2362 /* [following code does not require input rounding] */
2388 /* of C (by rounding or shifting) such that the exponent (-scale) */
2390 /* except for the effects of any rounding that occurred. */
2758 /* set is the context; note that rounding mode has no effect */
2805 /* % of f; to ensure proper rounding, compare squares of (approx - */
2833 Int residue=0; /* rounding residue */
2877 /* [following code does not require input rounding] */
2916 workp=MAXI(set->digits+1, rhs->digits); /* actual rounding precision */
3038 /* rounded square root of f; to ensure proper rounding, compare */
3073 /* [no errors are possible in the above, and rounding/inexact during */
3079 /* count droppable zeros [after any subnormal rounding] by */
3200 /* The context is used for rounding mode and status after sNaN, but */
3224 workset=*set; /* clone rounding, etc. */
3225 workset.digits=rhs->digits; /* no length rounding */
3840 Int residue; /* rounding accumulator */
3871 /* [following code does not require input rounding] */
3912 /* 0-0 gives +0 unless rounding to -infinity, and -0-0 gives -0 */
3967 /* is all in one unit, no operand rounding is needed, and no carry, */
4005 /* needed; then apply rounding (as exotic rounding modes may be */
4032 residue=1; /* residue for rounding */
4105 /* fit, so can't need rounding and residue must be 0.) */
4111 /* remove leading zeros that were added due to rounding up to */
4112 /* integral Units -- before the test for rounding. */
4123 /* leading zero could be included in the rounding.) */
4129 /* remove leading zeros that added due to rounding up to */
4131 /* maxdigits length, unless extended) before test for rounding. */
4138 /* Now apply rounding if needed before removing leading zeros. */
4151 /* apply checks and rounding */
4155 /* zero, the sign of that sum shall be '+' in all rounding modes */
4198 /* Remainder operators and division residues for exact rounding are */
4277 Int residue; /* for rounding */
4310 /* [following code does not require input rounding] */
4450 /* +1 -- for rounding of slide to right */
4646 /* record the presence of any residue, for rounding */
4871 Int residue=0; /* rounding residue */
4974 /* [following code does not require input rounding] */
5164 /* Set the coefficient. If any rounding, residue records */
5188 /* set is the context; note that rounding mode has no effect */
5265 Int residue; /* rounding residue */
5520 aset.digits=set->digits; /* [use default rounding] */
5566 /* set is the context; note that rounding mode has no effect */
5628 Int residue; /* rounding residue */
5799 /* accumulator after this is the final rounding (but note that */
5835 aset.digits=set->digits; /* [use default rounding] */
5853 /* of C (by rounding or shifting) such that the exponent (-scale) */
5856 /* any rounding that occurred. */
5881 Int residue=0; /* rounding residue */
5904 /* [following code does not require input rounding] */
5959 workset=*set; /* clone rounding, etc. */
6074 /* [following code does not require input rounding] */
6153 Int residue=0; /* rounding accumulator */
6185 /* copy chosen to result, rounding if need be */
6851 Int residue=0; /* rounding accumulator */
6876 /* set is the context [used for length (digits) and rounding mode] */
6926 /* can be adjusted in the range [-1, +1] and achieve correct rounding */
7080 /* decApplyRound -- apply pending rounding to a number */
7083 /* set is the context [for size and rounding mode] */
7084 /* residue indicates pending rounding, being any accumulated */
7086 /* 6-9: rounding digit is >5 */
7087 /* 5: rounding digit is exactly half-way */
7088 /* 1-4: rounding digit is <5 and >0 */
7097 /* This routine applies rounding while keeping the length of the */
7184 printf("Unknown rounding mode: %d\n", set->round);
7269 /* residue is the rounding accumulator (as in decApplyRound) */
7306 /* residue is the rounding accumulator (as in decApplyRound) */
7310 /* results, applying any pending rounding, checking for overflow, */
7382 /* set is the context [used for the rounding mode, etc.] */
7387 /* dn and the rounding mode, following IEEE 754 rules. */
7457 /* set is the context [used for the rounding mode] */
7515 workset=*set; /* clone rounding, etc. */