diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-03-21 10:34:12 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-03-21 10:34:12 +0000 |
commit | adb6cd9704b784abf8abae9d67598a5e20451ebd (patch) | |
tree | 0005e1221571d105110b1d8101f4dd8f074b06c3 /tuneup.c | |
parent | c22f699056cf2e50616988d44a72036d91b9b561 (diff) | |
download | mpfr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |