diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-02-02 13:43:07 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-02-02 13:43:07 +0000 |
commit | d9ac9711cbe725f40b3a563fa289989cee9c9fef (patch) | |
tree | df31f460cc80bece555353b6fb00b14ca1290d74 /src/const_log2.c | |
parent | 07063fa27a22bb9e192ffe6c6ab08d0b26358dd2 (diff) | |
download | mpfr-d9ac9711cbe725f40b3a563fa289989cee9c9fef.tar.gz |
replace mpfr_can_round by mpfr_round_p
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9906 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/const_log2.c')
-rw-r--r-- | src/const_log2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/const_log2.c b/src/const_log2.c index 881df659b..dea23015b 100644 --- a/src/const_log2.c +++ b/src/const_log2.c @@ -191,8 +191,8 @@ mpfr_const_log2_internal (mpfr_ptr x, mpfr_rnd_t rnd_mode) mpz_clear (Q[i]); } - if (MPFR_LIKELY (ok != 0 - || mpfr_can_round (t, w - 2, MPFR_RNDN, rnd_mode, n))) + if (MPFR_LIKELY (ok != 0 /* if ok != 0 we know by exhaustive testing the rounding is correct */ + || mpfr_round_p (MPFR_MANT(t), MPFR_LIMB_SIZE (t), w - 2, n))) break; MPFR_ZIV_NEXT (loop, w); |