summaryrefslogtreecommitdiff
path: root/src/setmax.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-06-25 12:02:19 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-06-25 12:02:19 +0000
commit4fc658f4c030cdf8550bcf1a308df660ce617aae (patch)
treec125157a0790fc3733507da60ef550c31c861076 /src/setmax.c
parent6c399d91a25032e34a4609422757c83d7e7fcf07 (diff)
downloadmpfr-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/setmax.c')
-rw-r--r--src/setmax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/setmax.c b/src/setmax.c
index 5e3d1ed37..c2bd7856c 100644
--- a/src/setmax.c
+++ b/src/setmax.c
@@ -35,7 +35,7 @@ mpfr_setmax (mpfr_ptr x, mpfr_exp_t e)
xn = MPFR_LIMB_SIZE (x);
sh = (mpfr_prec_t) xn * GMP_NUMB_BITS - MPFR_PREC(x);
xp = MPFR_MANT(x);
- xp[0] = MP_LIMB_T_MAX << sh;
+ xp[0] = MPFR_LIMB_MAX << sh;
for (i = 1; i < xn; i++)
- xp[i] = MP_LIMB_T_MAX;
+ xp[i] = MPFR_LIMB_MAX;
}