diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-06-06 13:39:40 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-06-06 13:39:40 +0000 |
commit | 3db35fa14260efe5f02bbcc99c9b7d2a87abb762 (patch) | |
tree | a110e22f1f874d50ed98a91dcba6f2556c07ef6f /div_ui.c | |
parent | 47e0a8676d993472eeb00d080f396120eadfd07a (diff) | |
download | mpfr-3db35fa14260efe5f02bbcc99c9b7d2a87abb762.tar.gz |
Remove mpfr_add_one_ulp from MPFR library.
The function is still in the CVS.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3614 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'div_ui.c')
-rw-r--r-- | div_ui.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -187,12 +187,12 @@ mpfr_div_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mp_rnd_t rnd_mode) case GMP_RNDU: if (MPFR_IS_POS(y)) - mpfr_add_one_ulp (y, rnd_mode); + mpfr_nexttoinf (y); MPFR_RET(1); /* result is inexact */ case GMP_RNDD: if (MPFR_IS_NEG(y)) - mpfr_add_one_ulp (y, rnd_mode); + mpfr_nexttoinf (y); MPFR_RET(-1); /* result is inexact */ default: @@ -202,7 +202,7 @@ mpfr_div_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mp_rnd_t rnd_mode) MPFR_RET(-MPFR_INT_SIGN(x)); else if (sh && d > (MPFR_LIMB_ONE << (sh - 1))) { - mpfr_add_one_ulp (y, rnd_mode); + mpfr_nexttoinf (y); MPFR_RET(MPFR_INT_SIGN(x)); } else /* sh = 0 or d = 1 << (sh-1) */ @@ -216,7 +216,7 @@ mpfr_div_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mp_rnd_t rnd_mode) if ((sh && inexact) || (!sh && (middle > 0)) || (!inexact && *yp & (MPFR_LIMB_ONE << sh))) { - mpfr_add_one_ulp (y, rnd_mode); + mpfr_nexttoinf (y); MPFR_RET(MPFR_INT_SIGN(x)); } else |