[Gmp-commit] /var/hg/gmp: 3 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Sat Nov 21 16:41:05 UTC 2015
details: /var/hg/gmp/rev/5ddd2179ee9c
changeset: 16973:5ddd2179ee9c
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Sat Nov 21 17:23:35 2015 +0100
description:
gmp-impl.h (MPN_TOOM22_MUL_MINSIZE): Consider ToomX2 limits.
details: /var/hg/gmp/rev/2f3ca123d227
changeset: 16974:2f3ca123d227
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Sat Nov 21 17:35:11 2015 +0100
description:
tests/mpn/t-toom22.c: Keep on testing small sizes.
details: /var/hg/gmp/rev/8aac33bb5843
changeset: 16975:8aac33bb5843
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Sat Nov 21 17:35:22 2015 +0100
description:
ChangeLog
diffstat:
ChangeLog | 8 +++++++-
gmp-impl.h | 4 +++-
tests/mpn/t-toom22.c | 2 +-
3 files changed, 11 insertions(+), 3 deletions(-)
diffs (47 lines):
diff -r 09ec1265bd9f -r 8aac33bb5843 ChangeLog
--- a/ChangeLog Fri Nov 20 08:16:27 2015 +0100
+++ b/ChangeLog Sat Nov 21 17:35:22 2015 +0100
@@ -1,3 +1,9 @@
+2015-11-21 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+ * gmp-impl.h (MPN_TOOM22_MUL_MINSIZE): Consider ToomX2 limits
+ (thanks Paul).
+ * tests/mpn/t-toom22.c: Keep on testing small sizes.
+
2015-11-13 Marco Bodrato <bodrato at mail.dm.unipi.it>
* mini-gmp/mini-gmp.c: Lazy allocation for mpz_t.
@@ -10,7 +16,7 @@
* mpq/set_num.c: Likewise.
* mpq/set_z.c: Likewise.
- * primesieve.c: Fill (initial) sieve with a presieved 70bits pattern.
+ * primesieve.c: Fill sieve with a presieved 70bits pattern.
2015-11-12 Marc Glisse <marc.glisse at inria.fr>
diff -r 09ec1265bd9f -r 8aac33bb5843 gmp-impl.h
--- a/gmp-impl.h Fri Nov 20 08:16:27 2015 +0100
+++ b/gmp-impl.h Sat Nov 21 17:35:22 2015 +0100
@@ -1273,7 +1273,9 @@
#endif
#define BELOW_THRESHOLD(size,thresh) (! ABOVE_THRESHOLD (size, thresh))
-#define MPN_TOOM22_MUL_MINSIZE 4
+/* The minimal supported value for Toom22 depends also on Toom32 and
+ Toom42 implementations. */
+#define MPN_TOOM22_MUL_MINSIZE 6
#define MPN_TOOM2_SQR_MINSIZE 4
#define MPN_TOOM33_MUL_MINSIZE 17
diff -r 09ec1265bd9f -r 8aac33bb5843 tests/mpn/t-toom22.c
--- a/tests/mpn/t-toom22.c Fri Nov 20 08:16:27 2015 +0100
+++ b/tests/mpn/t-toom22.c Sat Nov 21 17:35:22 2015 +0100
@@ -1,6 +1,6 @@
#define mpn_toomMN_mul mpn_toom22_mul
#define mpn_toomMN_mul_itch mpn_toom22_mul_itch
-#define MIN_AN MPN_TOOM22_MUL_MINSIZE
+#define MIN_AN MIN(MPN_TOOM22_MUL_MINSIZE,4)
#define MIN_BN(an) \
((an) >= 2*MUL_TOOM22_THRESHOLD \
More information about the gmp-commit
mailing list