summaryrefslogtreecommitdiff
path: root/tests/tgeneric.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 /tests/tgeneric.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 'tests/tgeneric.c')
-rw-r--r--tests/tgeneric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tgeneric.c b/tests/tgeneric.c
index 713e8683b..351ea7cc2 100644
--- a/tests/tgeneric.c
+++ b/tests/tgeneric.c
@@ -162,7 +162,7 @@ test_generic (mpfr_prec_t p0, mpfr_prec_t p1, unsigned int nmax)
xprec = prec;
if (randlimb () & 1)
{
- xprec *= (double) randlimb () / MP_LIMB_T_MAX;
+ xprec *= (double) randlimb () / MPFR_LIMB_MAX;
if (xprec < MPFR_PREC_MIN)
xprec = MPFR_PREC_MIN;
}