diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-02-21 11:14:27 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-02-21 11:14:27 +0000 |
commit | fd2b90a15171e2be4f9bc191c5801450cbc87b99 (patch) | |
tree | 20b3fb5af601a371d7be879ca99c69bbad95fc0a /tune | |
parent | f9af6cd46ea29f1f0e61fba21692d7da8ea66378 (diff) | |
download | mpfr-fd2b90a15171e2be4f9bc191c5801450cbc87b99.tar.gz |
[tuneup.c] start from 4 limbs for mpfr_div_threshold
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12361 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tune')
-rw-r--r-- | tune/tuneup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tune/tuneup.c b/tune/tuneup.c index d0bba0210..56eea24eb 100644 --- a/tune/tuneup.c +++ b/tune/tuneup.c @@ -492,7 +492,7 @@ tune_simple_func (mpfr_prec_t *threshold, if (verbose) printf ("Oops: even for precision %lu, algo 2 seems to be faster!\n", (unsigned long) pmin); - *threshold = MPFR_PREC_MIN; + *threshold = pmin; return; } if (d >= 1.00) @@ -1093,7 +1093,7 @@ all (const char *filename) if (verbose) printf ("Tuning mpfr_div...\n"); tune_simple_func (&mpfr_div_threshold, speed_mpfr_div, - 2*GMP_NUMB_BITS+1); + 3*GMP_NUMB_BITS+1); fprintf (f, "#define MPFR_DIV_THRESHOLD %lu /* limbs */\n", (unsigned long) (mpfr_div_threshold - 1) / GMP_NUMB_BITS + 1); |