From e77ab9365d2b9771c80e851ddc63dda142613188 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Fri, 8 Jan 2010 21:36:26 +0000 Subject: Replaced GMP_LIMB_BITS by GMP_NUMB_BITS to use only one of these macros. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6646 280ebfd0-de03-0410-8827-d642c229c3f4 --- tests/tcan_round.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/tcan_round.c') diff --git a/tests/tcan_round.c b/tests/tcan_round.c index e76881af4..21d3e2956 100644 --- a/tests/tcan_round.c +++ b/tests/tcan_round.c @@ -41,8 +41,8 @@ check_round_p (void) /* avoid mpn_random which leaks memory */ for (i = 0; i < n; i++) buf[i] = randlimb (); - p = (mp_prec_t) randlimb() % ((n-1) * GMP_LIMB_BITS) + MPFR_PREC_MIN; - err = p + randlimb () % GMP_LIMB_BITS; + p = (mp_prec_t) randlimb() % ((n-1) * GMP_NUMB_BITS) + MPFR_PREC_MIN; + err = p + randlimb () % GMP_NUMB_BITS; r1 = mpfr_round_p (buf, n, err, p); r2 = mpfr_can_round_raw (buf, n, MPFR_SIGN_POS, err, MPFR_RNDN, MPFR_RNDZ, p); -- cgit v1.2.1