summaryrefslogtreecommitdiff
path: root/pow_ui.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 /pow_ui.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 'pow_ui.c')
-rw-r--r--pow_ui.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pow_ui.c b/pow_ui.c
index 097968c83..0f0ada445 100644
--- a/pow_ui.c
+++ b/pow_ui.c
@@ -115,8 +115,7 @@ mpfr_pow_ui (mpfr_ptr x, mpfr_srcptr y, unsigned long int n, mp_rnd_t rnd)
}
if (MPFR_LIKELY (inexact == 0
|| mpfr_overflow_p () || mpfr_underflow_p ()
- || mpfr_can_round (res, err, GMP_RNDN, GMP_RNDZ,
- MPFR_PREC(x) + (rnd == GMP_RNDN))))
+ || MPFR_CAN_ROUND (res, err, MPFR_PREC (x), rnd)))
break;
/* Actualisation of the precision */
MPFR_ZIV_NEXT (loop, prec);