[Gmp-commit] /var/hg/gmp: tests/mpn/t-toom[468]-sqr.c: Maybe correct minimum ...

mercurial at gmplib.org mercurial at gmplib.org
Wed Apr 18 08:06:59 CEST 2012


details:   /var/hg/gmp/rev/bc9a626a9079
changeset: 14849:bc9a626a9079
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Wed Apr 18 08:06:56 2012 +0200
description:
tests/mpn/t-toom[468]-sqr.c: Maybe correct minimum this time...

diffstat:

 tests/mpn/t-toom4-sqr.c |  2 +-
 tests/mpn/t-toom6-sqr.c |  2 +-
 tests/mpn/t-toom8-sqr.c |  2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 4d653479e600 -r bc9a626a9079 tests/mpn/t-toom4-sqr.c
--- a/tests/mpn/t-toom4-sqr.c	Wed Apr 18 07:37:03 2012 +0200
+++ b/tests/mpn/t-toom4-sqr.c	Wed Apr 18 08:06:56 2012 +0200
@@ -1,6 +1,6 @@
 #define mpn_toomN_sqr mpn_toom4_sqr
 #define mpn_toomN_sqr_itch mpn_toom4_sqr_itch
-#define MIN_AN MAX(SQR_TOOM4_THRESHOLD,MPN_TOOM4_SQR_MINSIZE)
+#define MIN_AN MAX(SQR_TOOM3_THRESHOLD,MAX(SQR_TOOM4_THRESHOLD,MPN_TOOM4_SQR_MINSIZE))
 #define MAX_AN SQR_TOOM6_THRESHOLD
 
 #include "toom-sqr-shared.h"
diff -r 4d653479e600 -r bc9a626a9079 tests/mpn/t-toom6-sqr.c
--- a/tests/mpn/t-toom6-sqr.c	Wed Apr 18 07:37:03 2012 +0200
+++ b/tests/mpn/t-toom6-sqr.c	Wed Apr 18 08:06:56 2012 +0200
@@ -1,6 +1,6 @@
 #define mpn_toomN_sqr mpn_toom6_sqr
 #define mpn_toomN_sqr_itch mpn_toom6_sqr_itch
-#define MIN_AN MAX(SQR_TOOM6_THRESHOLD,MPN_TOOM6_SQR_MINSIZE)
+#define MIN_AN MAX(SQR_TOOM3_THRESHOLD,MAX(SQR_TOOM4_THRESHOLD,MAX(SQR_TOOM6_THRESHOLD,MPN_TOOM6_SQR_MINSIZE)))
 #define MAX_AN SQR_TOOM8_THRESHOLD
 
 #include "toom-sqr-shared.h"
diff -r 4d653479e600 -r bc9a626a9079 tests/mpn/t-toom8-sqr.c
--- a/tests/mpn/t-toom8-sqr.c	Wed Apr 18 07:37:03 2012 +0200
+++ b/tests/mpn/t-toom8-sqr.c	Wed Apr 18 08:06:56 2012 +0200
@@ -1,6 +1,6 @@
 #define mpn_toomN_sqr mpn_toom8_sqr
 #define mpn_toomN_sqr_itch mpn_toom8_sqr_itch
-#define MIN_AN MAX(SQR_TOOM8_THRESHOLD,MPN_TOOM8_SQR_MINSIZE)
+#define MIN_AN MAX(SQR_TOOM3_THRESHOLD,MAX(SQR_TOOM4_THRESHOLD,MAX(SQR_TOOM6_THRESHOLD,MAX(SQR_TOOM8_THRESHOLD,MPN_TOOM8_SQR_MINSIZE))))
 #define MAX_AN (SQR_FFT_THRESHOLD * 2)
 
 #include "toom-sqr-shared.h"


More information about the gmp-commit mailing list