diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-11-21 20:07:35 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-11-21 20:07:35 +0000 |
commit | 1f2c7864507e7a3a9110c0e1d755f7a80df16914 (patch) | |
tree | f133520c2b8f1d24543775404cde1edcc0da345f /div_ui.c | |
parent | a15e9cb1c98565d05b72d402d2c2f81c9de1e5e4 (diff) | |
download | mpfr-1f2c7864507e7a3a9110c0e1d755f7a80df16914.tar.gz |
mpfr_add_one_ulp and mpfr_sub_one_ulp changed.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1570 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
@@ -149,12 +149,12 @@ mpfr_div_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mp_rnd_t rnd_mode) case GMP_RNDU: if (MPFR_SIGN(y) > 0) - mpfr_add_one_ulp (y); + mpfr_add_one_ulp (y, rnd_mode); MPFR_RET(1); /* result is inexact */ case GMP_RNDD: if (MPFR_SIGN(y) < 0) - mpfr_add_one_ulp (y); + mpfr_add_one_ulp (y, rnd_mode); MPFR_RET(-1); /* result is inexact */ case GMP_RNDN: @@ -162,7 +162,7 @@ mpfr_div_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mp_rnd_t rnd_mode) MPFR_RET(-MPFR_SIGN(x)); else if (sh && d > (MP_LIMB_T_ONE << (sh - 1))) { - mpfr_add_one_ulp (y); + mpfr_add_one_ulp (y, rnd_mode); MPFR_RET(MPFR_SIGN(x)); } else /* sh = 0 or d = 1 << (sh-1) */ @@ -173,7 +173,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)) || (*yp & (MP_LIMB_T_ONE << sh))) { - mpfr_add_one_ulp (y); + mpfr_add_one_ulp (y, rnd_mode); MPFR_RET(MPFR_SIGN(x)); } else |