summaryrefslogtreecommitdiff
path: root/expm1.c
diff options
context:
space:
mode:
Diffstat (limited to 'expm1.c')
-rw-r--r--expm1.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/expm1.c b/expm1.c
index be33600b0..46dd28036 100644
--- a/expm1.c
+++ b/expm1.c
@@ -93,8 +93,7 @@ mpfr_expm1 (mpfr_ptr y, mpfr_srcptr x , mp_rnd_t rnd_mode)
/*err=Nt-(__gmpfr_ceil_log2(1+pow(2,MPFR_EXP(te)-MPFR_EXP(t))));*/
err = Nt - (MAX (exp_te - MPFR_GET_EXP (t), 0) + 1);
- if (MPFR_LIKELY (mpfr_can_round (t, err, GMP_RNDN, GMP_RNDZ,
- Ny + (rnd_mode == GMP_RNDN))))
+ if (MPFR_LIKELY (MPFR_CAN_ROUND (t, err, Ny, rnd_mode)))
break;
/* actualisation of the precision */