diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2014-06-25 12:02:19 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2014-06-25 12:02:19 +0000 |
commit | 4fc658f4c030cdf8550bcf1a308df660ce617aae (patch) | |
tree | c125157a0790fc3733507da60ef550c31c861076 /src/rint.c | |
parent | 6c399d91a25032e34a4609422757c83d7e7fcf07 (diff) | |
download | mpfr-4fc658f4c030cdf8550bcf1a308df660ce617aae.tar.gz |
Code clean-up:
* Simplified the definition of simple mp_limb_t constants: it is
better to avoid GMP internals when there is a standard way.
* Replaced the use of MP_LIMB_T_MAX by the new macro MPFR_LIMB_MAX.
* So, removed the now useless MP_LIMB_T_MAX and GMP_LIMB_HIGHBIT
definitions from "mpfr-gmp.h".
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9090 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/rint.c')
-rw-r--r-- | src/rint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rint.c b/src/rint.c index cb87179b3..56eee0363 100644 --- a/src/rint.c +++ b/src/rint.c @@ -278,7 +278,7 @@ mpfr_rint (mpfr_ptr r, mpfr_srcptr u, mpfr_rnd_t rnd_mode) } if (sh != 0) - rp[0] &= MP_LIMB_T_MAX << sh; + rp[0] &= MPFR_LIMB_MAX << sh; /* If u is a representable integer, there is no rounding. */ if (uflags == 0) |