summaryrefslogtreecommitdiff
path: root/hypot.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 /hypot.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 'hypot.c')
-rw-r--r--hypot.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hypot.c b/hypot.c
index 0373d1e31..cf5d9dd60 100644
--- a/hypot.c
+++ b/hypot.c
@@ -130,8 +130,7 @@ mpfr_hypot (mpfr_ptr z, mpfr_srcptr x , mpfr_srcptr y , mp_rnd_t rnd_mode)
exact |= mpfr_sqrt (t, t, GMP_RNDZ); /* sqrt(x^2+y^2)*/
if (MPFR_LIKELY (exact == 0
- || mpfr_can_round (t, Nt - 2, GMP_RNDN, GMP_RNDZ,
- Nz + (rnd_mode == GMP_RNDN))))
+ || MPFR_CAN_ROUND (t, Nt-2, Nz, rnd_mode)))
break;
/* reactualization of the precision */