summaryrefslogtreecommitdiff
path: root/tune
diff options
context:
space:
mode:
Diffstat (limited to 'tune')
-rw-r--r--tune/tuneup.c4
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);