diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-02-20 17:11:58 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-02-20 17:11:58 +0000 |
commit | 3e00f4bd4bc7b917c54b17c0856db1a121514f6f (patch) | |
tree | 33cbeda230569d52bd21f23d6d4375937b18539d /tune | |
parent | d72cf4dd8c7b3ca4547ddd05c9c720c642610e74 (diff) | |
download | mpfr-3e00f4bd4bc7b917c54b17c0856db1a121514f6f.tar.gz |
[src/div.c] added comment
[src/mpfr-gmp.h] moved definition of MUL_FFT_THRESHOLD
[src/mulders.c] removed unused code, and force n>=2 in mpfr_divhigh_n_basecase
[tests/tmul.c] improve coverage
[tune/tuneup.c] forbid k = n-1 in divhigh_ktab[]
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12348 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tune')
-rw-r--r-- | tune/tuneup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tune/tuneup.c b/tune/tuneup.c index 5c3988b17..a7402e8f7 100644 --- a/tune/tuneup.c +++ b/tune/tuneup.c @@ -886,9 +886,9 @@ tune_div_mulders_upto (mp_size_t n) /* Check Mulders */ step = 1 + n / (2 * MAX_STEPS); - /* we should have (n+3)/2 <= k < n, which translates into - (n+4)/2 <= k < n in C */ - for (k = (n + 4) / 2 ; k < n ; k += step) + /* we should have (n+3)/2 <= k < n-1, which translates into + (n+4)/2 <= k < n-1 in C */ + for (k = (n + 4) / 2 ; k < n - 1; k += step) { divhigh_ktab[n] = k; t = mpfr_speed_measure (speed_mpfr_divhigh, &s, "mpfr_divhigh"); |