summaryrefslogtreecommitdiff
path: root/log1p.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-03-14 09:50:29 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-03-14 09:50:29 +0000
commit4cc3d7b6458a25fd58ae71c1091930fbd55cdf28 (patch)
tree15cfc2b368672fedbc760aef8dae27babc9484a1 /log1p.c
parent106ab958c8bc8e64c63bac9bfb885a1ebca56053 (diff)
downloadmpfr-4cc3d7b6458a25fd58ae71c1091930fbd55cdf28.tar.gz
Replace mpfr_can_round (..., GMP_RNDN, GMP_RNDZ, ...) to fast replacement
mpfr_round_p. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3388 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'log1p.c')
-rw-r--r--log1p.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/log1p.c b/log1p.c
index fb3d298f6..d3b696a08 100644
--- a/log1p.c
+++ b/log1p.c
@@ -110,8 +110,7 @@ mpfr_log1p (mpfr_ptr y, mpfr_srcptr x, mp_rnd_t rnd_mode)
/*err=Nt-(__gmpfr_ceil_log2(1+pow(2,1-MPFR_GET_EXP(t))));*/
err = Nt - (MAX (1 - 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 */