summaryrefslogtreecommitdiff
path: root/acos.c
diff options
context:
space:
mode:
Diffstat (limited to 'acos.c')
-rw-r--r--acos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/acos.c b/acos.c
index 68db18230..35e6c271a 100644
--- a/acos.c
+++ b/acos.c
@@ -110,8 +110,8 @@ mpfr_acos (mpfr_ptr acos, mpfr_srcptr x, mp_rnd_t rnd_mode)
mpfr_div_2ui (tmp, tmp, 1, GMP_RNDN);
mpfr_sub (arcc, tmp, arcc, GMP_RNDN);
- if (mpfr_can_round (arcc, prec-supplement, GMP_RNDN, GMP_RNDZ,
- MPFR_PREC (acos) + (rnd_mode == GMP_RNDN)))
+ if (MPFR_LIKELY (MPFR_CAN_ROUND (arcc, prec-supplement,
+ MPFR_PREC (acos), rnd_mode)))
break;
MPFR_ZIV_NEXT (loop, prec);
mpfr_set_prec (tmp, prec);