diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-03-14 09:50:29 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-03-14 09:50:29 +0000 |
commit | 4cc3d7b6458a25fd58ae71c1091930fbd55cdf28 (patch) | |
tree | 15cfc2b368672fedbc760aef8dae27babc9484a1 /cosh.c | |
parent | 106ab958c8bc8e64c63bac9bfb885a1ebca56053 (diff) | |
download | mpfr-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 'cosh.c')
-rw-r--r-- | cosh.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -94,9 +94,8 @@ mpfr_cosh (mpfr_ptr y, mpfr_srcptr xt , mp_rnd_t rnd_mode) err = Nt - 3; /* Check if we can round */ - if (MPFR_UNLIKELY(MPFR_IS_INF(t)) || - mpfr_can_round (t, err, GMP_RNDN, GMP_RNDZ, - Ny + (rnd_mode == GMP_RNDN))) + if (MPFR_UNLIKELY (MPFR_IS_INF (t)) + || MPFR_LIKELY (MPFR_CAN_ROUND (t, err, Ny, rnd_mode))) break; /* Actualisation of the precision */ |