diff options
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); |