summaryrefslogtreecommitdiff
path: root/tuneup.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-03-21 10:34:12 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-03-21 10:34:12 +0000
commitadb6cd9704b784abf8abae9d67598a5e20451ebd (patch)
tree0005e1221571d105110b1d8101f4dd8f074b06c3 /tuneup.c
parentc22f699056cf2e50616988d44a72036d91b9b561 (diff)
downloadmpfr-adb6cd9704b784abf8abae9d67598a5e20451ebd.tar.gz
Add case where bn == 1 and bn == 2 by using longlong.h.
Modify tuneup to start with prec=2*BITS_PER_MP_LIMB+1 Fix bug in computing the estimated precision when you switch from N limbs to N+1 limbs. Add regression tests. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3396 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tuneup.c')
-rw-r--r--tuneup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tuneup.c b/tuneup.c
index 636f56c0e..04c83d0dd 100644
--- a/tuneup.c
+++ b/tuneup.c
@@ -457,7 +457,7 @@ all (const char *filename)
if (verbose)
printf ("Tuning mpfr_mul...\n");
tune_simple_func (&mpfr_mul_threshold, speed_mpfr_mul,
- MPFR_PREC_MIN);
+ 2*BITS_PER_MP_LIMB+1);
fprintf (f, "#define MPFR_MUL_THRESHOLD %lu\n",
(unsigned long) (mpfr_mul_threshold-1)/BITS_PER_MP_LIMB+1);