diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-01-08 19:13:48 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-01-08 19:13:48 +0000 |
commit | 1f7f06d17a7f5bacaa40d8cea4237ffe094ef433 (patch) | |
tree | 97fdc324d0ae9640c439df546f625d8a15ad50fe /speed.c | |
parent | 8f36df5d6bf5f20f4c4e60e9ac22e9d4d4a6508e (diff) | |
download | mpfr-1f7f06d17a7f5bacaa40d8cea4237ffe094ef433.tar.gz |
BITS_PER_MP_LIMB -> GMP_LIMB_BITS
got rid of BYTES_PER_MP_LIMB in configure.in (no longer defined by GMP)
Note[VL] (mpfr-impl.h): a mpn_sqr_n() macro is defined to use mpn_mul
if it is not already defined (in gmp-impl.h from GMP 4.x).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6644 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'speed.c')
-rw-r--r-- | speed.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -57,7 +57,7 @@ int verbose; SPEED_RESTRICT_COND (s->size <= MPFR_PREC_MAX); \ MPFR_TMP_MARK (marker); \ \ - size = (s->size-1)/BITS_PER_MP_LIMB+1; \ + size = (s->size-1)/GMP_LIMB_BITS+1; \ s->xp[size-1] |= MPFR_LIMB_HIGHBIT; \ MPFR_TMP_INIT1 (s->xp, x, s->size); \ MPFR_SET_EXP (x, 0); \ @@ -91,7 +91,7 @@ int verbose; SPEED_RESTRICT_COND (s->size <= MPFR_PREC_MAX); \ MPFR_TMP_MARK (marker); \ \ - size = (s->size-1)/BITS_PER_MP_LIMB+1; \ + size = (s->size-1)/GMP_LIMB_BITS+1; \ s->xp[size-1] |= MPFR_LIMB_HIGHBIT; \ MPFR_TMP_INIT1 (s->xp, x, s->size); \ MPFR_SET_EXP (x, 0); \ @@ -144,7 +144,7 @@ static double domeasure (mp_prec_t *threshold, s.align_xp = s.align_yp = s.align_wp = 64; s.size = p; - size = (p - 1)/BITS_PER_MP_LIMB+1; + size = (p - 1)/GMP_LIMB_BITS+1; s.xp = malloc (2*size*sizeof (mp_limb_t)); if (s.xp == NULL) { @@ -183,7 +183,7 @@ tune_simple_func (mp_prec_t *threshold, { measure = domeasure (threshold, func, p); printf ("prec=%lu mpfr_mul=%e ", p, measure); - n = 1 + (p - 1) / BITS_PER_MP_LIMB; + n = 1 + (p - 1) / GMP_LIMB_BITS; if (n <= MPFR_MUL_THRESHOLD) k = MUL_FFT_THRESHOLD + 1; else if (n < MPFR_MULHIGH_TAB_SIZE) @@ -255,7 +255,7 @@ all (void) printf ("Measuring mpfr_mul with mpfr_mul_threshold=%lu...\n", mpfr_mul_threshold); tune_simple_func (&mpfr_mul_threshold, speed_mpfr_mul, - 2*BITS_PER_MP_LIMB+1, 1000); + 2*GMP_LIMB_BITS+1, 1000); /* End of tuning */ time (&end_time); |