[Gmp-commit] /home/hgfiles/gmp: Correct checking range in tests/mpn/t-toom[68...
mercurial at gmplib.org
mercurial at gmplib.org
Sat Feb 5 09:45:50 CET 2011
details: /home/hgfiles/gmp/rev/1f58740e2052
changeset: 13826:1f58740e2052
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Sat Feb 05 09:45:46 2011 +0100
description:
Correct checking range in tests/mpn/t-toom[68]h .
diffstat:
ChangeLog | 3 +++
tests/mpn/t-toom6h.c | 2 +-
tests/mpn/t-toom8h.c | 2 +-
3 files changed, 5 insertions(+), 2 deletions(-)
diffs (37 lines):
diff -r 1b0be85a44f3 -r 1f58740e2052 ChangeLog
--- a/ChangeLog Sat Feb 05 01:00:57 2011 +0100
+++ b/ChangeLog Sat Feb 05 09:45:46 2011 +0100
@@ -2,6 +2,9 @@
* gmp-impl.h (mpn_toom6_mul_n_itch): Handle threshold == zero.
(mpn_toom8_mul_n_itch): Likewise.
+ (MPN_TOOM6H_MIN, MPN_TOOM8H_MIN): Define.
+ * tests/mpn/t-toom6h.c: No tests below MPN_TOOM6H_MIN.
+ * tests/mpn/t-toom8h.c: No tests below MPN_TOOM8H_MIN.
2011-02-04 Torbjorn Granlund <tege at gmplib.org>
diff -r 1b0be85a44f3 -r 1f58740e2052 tests/mpn/t-toom6h.c
--- a/tests/mpn/t-toom6h.c Sat Feb 05 01:00:57 2011 +0100
+++ b/tests/mpn/t-toom6h.c Sat Feb 05 09:45:46 2011 +0100
@@ -5,7 +5,7 @@
/* Smaller sizes not supported; may lead to recursive calls to
toom22_mul, toom33_mul, or toom44_mul with invalid input size. */
-#define MIN_AN MUL_TOOM6H_THRESHOLD
+#define MIN_AN MUL_TOOM6H_MIN
#define MIN_BN(an) (MAX ((an*3)>>3, 42) )
#define COUNT 1000
diff -r 1b0be85a44f3 -r 1f58740e2052 tests/mpn/t-toom8h.c
--- a/tests/mpn/t-toom8h.c Sat Feb 05 01:00:57 2011 +0100
+++ b/tests/mpn/t-toom8h.c Sat Feb 05 09:45:46 2011 +0100
@@ -5,7 +5,7 @@
/* Smaller sizes not supported; may lead to recursive calls to
toom{22,33,44,6h}_mul with invalid input size. */
-#define MIN_AN MUL_TOOM8H_THRESHOLD
+#define MIN_AN MUL_TOOM8H_MIN
#if GMP_NUMB_BITS <= 10*3
#define MIN_BN(an) (MAX ((an*6)/10, 86) )
More information about the gmp-commit
mailing list