[Gmp-commit] /var/hg/gmp-5.0: (MIN_BN): Make more consistent with ASSERT in t...

mercurial at gmplib.org mercurial at gmplib.org
Thu Feb 2 14:34:38 CET 2012


details:   /var/hg/gmp-5.0/rev/a466f9fab370
changeset: 13534:a466f9fab370
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Feb 02 14:34:34 2012 +0100
description:
(MIN_BN): Make more consistent with ASSERT in tested function.
Merge t-toomNh tests changes from mainline repo.

diffstat:

 ChangeLog            |  10 ++++++++++
 tests/mpn/t-toom6h.c |   6 +++++-
 tests/mpn/t-toom8h.c |   4 ++++
 3 files changed, 19 insertions(+), 1 deletions(-)

diffs (61 lines):

diff -r 2d3dce6a5eb3 -r a466f9fab370 ChangeLog
--- a/ChangeLog	Wed Feb 01 23:06:34 2012 +0100
+++ b/ChangeLog	Thu Feb 02 14:34:34 2012 +0100
@@ -1,3 +1,8 @@
+2012-02-02  Torbjorn Granlund  <tege at gmplib.org>
+
+	* tests/mpn/t-toom6h.c (MIN_BN): Make more consistent with ASSERT in
+	tested function.
+
 2012-02-01  Torbjorn Granlund  <tege at gmplib.org>
 
 	* tests/mpn/t-mul.c: New file.
@@ -474,6 +479,11 @@
 	MOD_1_2_TO_MOD_1_4_THRESHOLD before MOD_1U_TO_MOD_1_1_THRESHOLD for
 	correctness.
 
+2010-04-12  Torbjorn Granlund  <tege at gmplib.org>
+
+	* tests/mpn/t-toom6h.c (SIZE_LOG): Define.
+	* tests/mpn/t-toom8h.c (SIZE_LOG): Likewise.
+
 2010-04-10  Torbjorn Granlund  <tege at gmplib.org>
 
 	* mpn/x86/divrem_2.asm: Use "orb" instead of "or" to work around
diff -r 2d3dce6a5eb3 -r a466f9fab370 tests/mpn/t-toom6h.c
--- a/tests/mpn/t-toom6h.c	Wed Feb 01 23:06:34 2012 +0100
+++ b/tests/mpn/t-toom6h.c	Thu Feb 02 14:34:34 2012 +0100
@@ -1,9 +1,13 @@
 #define mpn_toomMN_mul mpn_toom6h_mul
 #define mpn_toomMN_mul_itch mpn_toom6h_mul_itch
 
+#define SIZE_LOG 11
+
 /* 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_BN(an) (MAX ((an*3)>>3, 42) )
+#define MIN_BN(an) (MAX ((an*3)>>3, 46))
+
+#define COUNT 1000
 
 #include "toom-shared.h"
diff -r 2d3dce6a5eb3 -r a466f9fab370 tests/mpn/t-toom8h.c
--- a/tests/mpn/t-toom8h.c	Wed Feb 01 23:06:34 2012 +0100
+++ b/tests/mpn/t-toom8h.c	Thu Feb 02 14:34:34 2012 +0100
@@ -1,6 +1,8 @@
 #define mpn_toomMN_mul mpn_toom8h_mul
 #define mpn_toomMN_mul_itch mpn_toom8h_mul_itch
 
+#define SIZE_LOG 11
+
 /* 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
@@ -19,4 +21,6 @@
 #endif
 #endif
 
+#define COUNT 1000
+
 #include "toom-shared.h"


More information about the gmp-commit mailing list