[Gmp-commit] /var/hg/gmp: Updated minithres.

mercurial at gmplib.org mercurial at gmplib.org
Mon May 7 08:31:16 CEST 2012


details:   /var/hg/gmp/rev/9ff994ee2cc6
changeset: 14948:9ff994ee2cc6
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Mon May 07 08:31:11 2012 +0200
description:
Updated minithres.

diffstat:

 ChangeLog                   |  5 +++++
 mpn/minithres/gmp-mparam.h  |  6 +++---
 tests/mpn/toom-sqr-shared.h |  2 +-
 3 files changed, 9 insertions(+), 4 deletions(-)

diffs (51 lines):

diff -r da0a8f4c316a -r 9ff994ee2cc6 ChangeLog
--- a/ChangeLog	Sun May 06 20:13:17 2012 +0200
+++ b/ChangeLog	Mon May 07 08:31:11 2012 +0200
@@ -1,3 +1,8 @@
+2012-05-07 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+	* mpn/minithres/gmp-mparam.h: Updated TOOM6 and FAC_DSC.
+	* tests/mpn/toom-sqr-shared.h: Don't test if no range.
+
 2012-05-06  Torbjorn Granlund  <tege at gmplib.org>
 
 	* mini-gmp/mini-gmp.c: Put untested functions under
diff -r da0a8f4c316a -r 9ff994ee2cc6 mpn/minithres/gmp-mparam.h
--- a/mpn/minithres/gmp-mparam.h	Sun May 06 20:13:17 2012 +0200
+++ b/mpn/minithres/gmp-mparam.h	Mon May 07 08:31:11 2012 +0200
@@ -35,7 +35,7 @@
 #define MUL_TOOM22_THRESHOLD                 8
 #define MUL_TOOM33_THRESHOLD                20
 #define MUL_TOOM44_THRESHOLD                24
-#define MUL_TOOM6H_THRESHOLD               200 /* FIXME */
+#define MUL_TOOM6H_THRESHOLD                70 /* FIXME */
 #define MUL_TOOM8H_THRESHOLD                86
 
 #define MUL_TOOM32_TO_TOOM43_THRESHOLD      50 /* FIXME */
@@ -47,7 +47,7 @@
 #define SQR_TOOM2_THRESHOLD                  8
 #define SQR_TOOM3_THRESHOLD                 20
 #define SQR_TOOM4_THRESHOLD                 24
-#define SQR_TOOM6H_THRESHOLD               200 /* FIXME */
+#define SQR_TOOM6H_THRESHOLD                70 /* FIXME */
 #define SQR_TOOM8H_THRESHOLD                86
 
 #define MULMOD_BNM1_THRESHOLD            10
@@ -95,4 +95,4 @@
 #define SET_STR_PRECOMPUTE_THRESHOLD       100
 
 #define FAC_ODD_THRESHOLD                    0  /* always */
-#define FAC_DSC_THRESHOLD                   25
+#define FAC_DSC_THRESHOLD                   26
diff -r da0a8f4c316a -r 9ff994ee2cc6 tests/mpn/toom-sqr-shared.h
--- a/tests/mpn/toom-sqr-shared.h	Sun May 06 20:13:17 2012 +0200
+++ b/tests/mpn/toom-sqr-shared.h	Mon May 07 08:31:11 2012 +0200
@@ -62,7 +62,7 @@
   scratch
     = 1+TMP_ALLOC_LIMBS (mpn_toomN_sqr_itch (MAX_AN) + 2);
 
-  if (MAX_AN >= MIN_AN)
+  if (MAX_AN > MIN_AN)
   for (test = 0; test < count; test++)
     {
       unsigned size_min;


More information about the gmp-commit mailing list