diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-09-24 19:57:30 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-09-24 19:57:30 +0000 |
commit | 1c569369296e88f224d276cb591bd1a00ef07441 (patch) | |
tree | f639844534b626d7d9149dcfd6ca0ec444f156b4 /tune | |
parent | 45f039315e7571f5e6ec6289876a7f0242394f9b (diff) | |
download | mpfr-1c569369296e88f224d276cb591bd1a00ef07441.tar.gz |
[tuneup.c] changed lower bound for exp_2 threshold from MPFR_PREC_MIN (2) to
GMP_NUMB_BITS. Seems to be better (since for p=2 the 2nd routine
was sometimes already faster).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7170 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tune')
-rw-r--r-- | tune/tuneup.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tune/tuneup.c b/tune/tuneup.c index 8e37ca14b..2dbb4aadd 100644 --- a/tune/tuneup.c +++ b/tune/tuneup.c @@ -969,9 +969,7 @@ all (const char *filename) /* Tune mpfr_exp_2 */ if (verbose) printf ("Tuning mpfr_exp_2...\n"); - tune_simple_func (&mpfr_exp_2_threshold, speed_mpfr_exp_2, - MPFR_PREC_MIN); - mpfr_exp_2_threshold = MAX (GMP_NUMB_BITS, mpfr_exp_2_threshold); + tune_simple_func (&mpfr_exp_2_threshold, speed_mpfr_exp_2, GMP_NUMB_BITS); fprintf (f, "#define MPFR_EXP_2_THRESHOLD %lu /* bits */\n", (unsigned long) mpfr_exp_2_threshold); |