diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-03-03 16:51:07 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-03-03 16:51:07 +0000 |
commit | f5f7883fc7cf47d38ed493a882fd7109bdd589bb (patch) | |
tree | 1058cf0d07593fa2cec9f32b4988ac40611b4bff /exceptions.c | |
parent | cbd40e1cb659b579e608afbe7a05da5b15a860be (diff) | |
download | mpfr-f5f7883fc7cf47d38ed493a882fd7109bdd589bb.tar.gz |
GMP_RNDX -> MPFR_RNDX
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6053 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'exceptions.c')
-rw-r--r-- | exceptions.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/exceptions.c b/exceptions.c index 1f14b4726..a98ca3c29 100644 --- a/exceptions.c +++ b/exceptions.c @@ -205,11 +205,11 @@ mpfr_check_range (mpfr_ptr x, int t, mp_rnd_t rnd_mode) * _ |x| = 2^(emin-2) and the absolute value of the exact * result is <= 2^(emin-2). */ - if (rnd_mode == GMP_RNDN && + if (rnd_mode == MPFR_RNDN && (exp + 1 < __gmpfr_emin || (mpfr_powerof2_raw(x) && (MPFR_IS_NEG(x) ? t <= 0 : t >= 0)))) - rnd_mode = GMP_RNDZ; + rnd_mode = MPFR_RNDZ; return mpfr_underflow(x, rnd_mode, MPFR_SIGN(x)); } if (MPFR_UNLIKELY( exp > __gmpfr_emax) ) @@ -284,7 +284,7 @@ mpfr_erangeflag_p (void) /* Note: In the rounding to the nearest mode, mpfr_underflow always rounds away from 0. In this rounding mode, you must call - mpfr_underflow with rnd_mode = GMP_RNDZ if the exact result + mpfr_underflow with rnd_mode = MPFR_RNDZ if the exact result is <= 2^(emin-2) in absolute value. */ int |