summaryrefslogtreecommitdiff
path: root/const_pi.c
diff options
context:
space:
mode:
Diffstat (limited to 'const_pi.c')
-rw-r--r--const_pi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/const_pi.c b/const_pi.c
index c2ae870ed..4e3237de6 100644
--- a/const_pi.c
+++ b/const_pi.c
@@ -93,8 +93,7 @@ mpfr_const_pi_internal (mpfr_ptr x, mp_rnd_t rnd_mode)
mpfr_div (A, B, D, GMP_RNDN);
/* MPFR_ASSERTN(p >= 2 * k + 8); */
- if (MPFR_LIKELY (mpfr_can_round (A, p - 2 * k - 8, GMP_RNDN, GMP_RNDZ,
- px + (rnd_mode == GMP_RNDN))))
+ if (MPFR_LIKELY (MPFR_CAN_ROUND (A, p - 2 * k - 8, px, rnd_mode)))
break;
p += kmax;