[Gmp-commit] /home/hgfiles/gmp: Fix incorrect MOD_1U_TO_MOD_1_1_THRESHOLD 0 v...

mercurial at gmplib.org mercurial at gmplib.org
Sun Dec 27 13:55:59 CET 2009


details:   /home/hgfiles/gmp/rev/21e4d82dc81f
changeset: 13236:21e4d82dc81f
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Dec 27 13:55:50 2009 +0100
description:
Fix incorrect MOD_1U_TO_MOD_1_1_THRESHOLD 0 values.

diffstat:

 ChangeLog                            |  3 +++
 mpn/alpha/ev5/gmp-mparam.h           |  4 ++--
 mpn/ia64/gmp-mparam.h                |  4 ++--
 mpn/pa32/hppa2_0/gmp-mparam.h        |  4 ++--
 mpn/powerpc32/750/gmp-mparam.h       |  4 ++--
 mpn/powerpc64/mode64/p5/gmp-mparam.h |  4 ++--
 mpn/x86/k6/gmp-mparam.h              |  4 ++--
 mpn/x86/k7/gmp-mparam.h              |  4 ++--
 mpn/x86/p6/mmx/gmp-mparam.h          |  4 ++--
 mpn/x86/pentium4/sse2/gmp-mparam.h   |  6 +++---
 mpn/x86_64/atom/gmp-mparam.h         |  4 ++--
 mpn/x86_64/core2/gmp-mparam.h        |  4 ++--
 mpn/x86_64/corei/gmp-mparam.h        |  4 ++--
 mpn/x86_64/gmp-mparam.h              |  4 ++--
 14 files changed, 30 insertions(+), 27 deletions(-)

diffs (196 lines):

diff -r 2f273162e8bd -r 21e4d82dc81f ChangeLog
--- a/ChangeLog	Sun Dec 27 13:32:31 2009 +0100
+++ b/ChangeLog	Sun Dec 27 13:55:50 2009 +0100
@@ -1,5 +1,8 @@
 2009-12-27  Torbjorn Granlund  <tege at gmplib.org>
 
+	* mpn/*/gmp-mparam.h: Fix incorrect MOD_1U_TO_MOD_1_1_THRESHOLD 0
+	values.
+
 	* gmp-impl.h (MODEXACT_1_ODD_THRESHOLD): Remove.
 	(BMOD_1_TO_MOD_1_THRESHOLD): New parameter, with the reverse meaning of
 	MODEXACT_1_ODD_THRESHOLD.
diff -r 2f273162e8bd -r 21e4d82dc81f mpn/alpha/ev5/gmp-mparam.h
--- a/mpn/alpha/ev5/gmp-mparam.h	Sun Dec 27 13:32:31 2009 +0100
+++ b/mpn/alpha/ev5/gmp-mparam.h	Sun Dec 27 13:55:50 2009 +0100
@@ -82,8 +82,8 @@
 #define MOD_1_NORM_THRESHOLD                 0  /* always */
 #define MOD_1_UNNORM_THRESHOLD               0  /* always */
 #define MOD_1N_TO_MOD_1_1_THRESHOLD         33
-#define MOD_1U_TO_MOD_1_1_THRESHOLD          0  /* always */
-#define MOD_1_1_TO_MOD_1_2_THRESHOLD         5
+#define MOD_1U_TO_MOD_1_1_THRESHOLD          5
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0
 #define MOD_1_2_TO_MOD_1_4_THRESHOLD        16
 #define PREINV_MOD_1_TO_MOD_1_THRESHOLD     76
 #define USE_PREINV_DIVREM_1                  1  /* preinv always */
diff -r 2f273162e8bd -r 21e4d82dc81f mpn/ia64/gmp-mparam.h
--- a/mpn/ia64/gmp-mparam.h	Sun Dec 27 13:32:31 2009 +0100
+++ b/mpn/ia64/gmp-mparam.h	Sun Dec 27 13:55:50 2009 +0100
@@ -80,8 +80,8 @@
 #define MOD_1_NORM_THRESHOLD                 0  /* always */
 #define MOD_1_UNNORM_THRESHOLD               0  /* always */
 #define MOD_1N_TO_MOD_1_1_THRESHOLD         15
-#define MOD_1U_TO_MOD_1_1_THRESHOLD          0  /* always */
-#define MOD_1_1_TO_MOD_1_2_THRESHOLD         8
+#define MOD_1U_TO_MOD_1_1_THRESHOLD          8
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0
 #define MOD_1_2_TO_MOD_1_4_THRESHOLD        14
 #define PREINV_MOD_1_TO_MOD_1_THRESHOLD     23
 #define USE_PREINV_DIVREM_1                  1  /* native */
diff -r 2f273162e8bd -r 21e4d82dc81f mpn/pa32/hppa2_0/gmp-mparam.h
--- a/mpn/pa32/hppa2_0/gmp-mparam.h	Sun Dec 27 13:32:31 2009 +0100
+++ b/mpn/pa32/hppa2_0/gmp-mparam.h	Sun Dec 27 13:55:50 2009 +0100
@@ -81,8 +81,8 @@
 #define MOD_1_NORM_THRESHOLD                 3
 #define MOD_1_UNNORM_THRESHOLD               4
 #define MOD_1N_TO_MOD_1_1_THRESHOLD         15
-#define MOD_1U_TO_MOD_1_1_THRESHOLD          0  /* always */
-#define MOD_1_1_TO_MOD_1_2_THRESHOLD         8
+#define MOD_1U_TO_MOD_1_1_THRESHOLD          8
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0
 #define MOD_1_2_TO_MOD_1_4_THRESHOLD        18
 #define PREINV_MOD_1_TO_MOD_1_THRESHOLD     21
 #define USE_PREINV_DIVREM_1                  1
diff -r 2f273162e8bd -r 21e4d82dc81f mpn/powerpc32/750/gmp-mparam.h
--- a/mpn/powerpc32/750/gmp-mparam.h	Sun Dec 27 13:32:31 2009 +0100
+++ b/mpn/powerpc32/750/gmp-mparam.h	Sun Dec 27 13:55:50 2009 +0100
@@ -82,8 +82,8 @@
 #define MOD_1_NORM_THRESHOLD                 3
 #define MOD_1_UNNORM_THRESHOLD               0  /* always */
 #define MOD_1N_TO_MOD_1_1_THRESHOLD          8
-#define MOD_1U_TO_MOD_1_1_THRESHOLD          0  /* always */
-#define MOD_1_1_TO_MOD_1_2_THRESHOLD        11
+#define MOD_1U_TO_MOD_1_1_THRESHOLD         11
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0
 #define MOD_1_2_TO_MOD_1_4_THRESHOLD        16
 #define PREINV_MOD_1_TO_MOD_1_THRESHOLD     29
 #define USE_PREINV_DIVREM_1                  1
diff -r 2f273162e8bd -r 21e4d82dc81f mpn/powerpc64/mode64/p5/gmp-mparam.h
--- a/mpn/powerpc64/mode64/p5/gmp-mparam.h	Sun Dec 27 13:32:31 2009 +0100
+++ b/mpn/powerpc64/mode64/p5/gmp-mparam.h	Sun Dec 27 13:55:50 2009 +0100
@@ -77,8 +77,8 @@
 #define MOD_1_NORM_THRESHOLD                 0  /* always */
 #define MOD_1_UNNORM_THRESHOLD               0  /* always */
 #define MOD_1N_TO_MOD_1_1_THRESHOLD         46
-#define MOD_1U_TO_MOD_1_1_THRESHOLD          0  /* always */
-#define MOD_1_1_TO_MOD_1_2_THRESHOLD         4
+#define MOD_1U_TO_MOD_1_1_THRESHOLD          4
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0
 #define MOD_1_2_TO_MOD_1_4_THRESHOLD        18
 #define PREINV_MOD_1_TO_MOD_1_THRESHOLD     46
 #define USE_PREINV_DIVREM_1                  0
diff -r 2f273162e8bd -r 21e4d82dc81f mpn/x86/k6/gmp-mparam.h
--- a/mpn/x86/k6/gmp-mparam.h	Sun Dec 27 13:32:31 2009 +0100
+++ b/mpn/x86/k6/gmp-mparam.h	Sun Dec 27 13:55:50 2009 +0100
@@ -78,8 +78,8 @@
 #define MOD_1_NORM_THRESHOLD                13
 #define MOD_1_UNNORM_THRESHOLD           MP_SIZE_T_MAX  /* never */
 #define MOD_1N_TO_MOD_1_1_THRESHOLD         27
-#define MOD_1U_TO_MOD_1_1_THRESHOLD          0  /* always */
-#define MOD_1_1_TO_MOD_1_2_THRESHOLD        13
+#define MOD_1U_TO_MOD_1_1_THRESHOLD         19
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0
 #define MOD_1_2_TO_MOD_1_4_THRESHOLD     MP_SIZE_T_MAX  /* never */
 #define PREINV_MOD_1_TO_MOD_1_THRESHOLD     84
 #define USE_PREINV_DIVREM_1                  0
diff -r 2f273162e8bd -r 21e4d82dc81f mpn/x86/k7/gmp-mparam.h
--- a/mpn/x86/k7/gmp-mparam.h	Sun Dec 27 13:32:31 2009 +0100
+++ b/mpn/x86/k7/gmp-mparam.h	Sun Dec 27 13:55:50 2009 +0100
@@ -76,8 +76,8 @@
 #define MOD_1_NORM_THRESHOLD                 0  /* always */
 #define MOD_1_UNNORM_THRESHOLD               3
 #define MOD_1N_TO_MOD_1_1_THRESHOLD         11
-#define MOD_1U_TO_MOD_1_1_THRESHOLD          0  /* always */
-#define MOD_1_1_TO_MOD_1_2_THRESHOLD         7
+#define MOD_1U_TO_MOD_1_1_THRESHOLD          7
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0
 #define MOD_1_2_TO_MOD_1_4_THRESHOLD        14
 #define PREINV_MOD_1_TO_MOD_1_THRESHOLD     14
 #define USE_PREINV_DIVREM_1                  1  /* native */
diff -r 2f273162e8bd -r 21e4d82dc81f mpn/x86/p6/mmx/gmp-mparam.h
--- a/mpn/x86/p6/mmx/gmp-mparam.h	Sun Dec 27 13:32:31 2009 +0100
+++ b/mpn/x86/p6/mmx/gmp-mparam.h	Sun Dec 27 13:55:50 2009 +0100
@@ -84,8 +84,8 @@
 #define MOD_1_NORM_THRESHOLD                 4
 #define MOD_1_UNNORM_THRESHOLD               5
 #define MOD_1N_TO_MOD_1_1_THRESHOLD          8
-#define MOD_1U_TO_MOD_1_1_THRESHOLD          0  /* always */
-#define MOD_1_1_TO_MOD_1_2_THRESHOLD         7
+#define MOD_1U_TO_MOD_1_1_THRESHOLD          7
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0
 #define MOD_1_2_TO_MOD_1_4_THRESHOLD        13
 #define PREINV_MOD_1_TO_MOD_1_THRESHOLD     16
 #define USE_PREINV_DIVREM_1                  1  /* native */
diff -r 2f273162e8bd -r 21e4d82dc81f mpn/x86/pentium4/sse2/gmp-mparam.h
--- a/mpn/x86/pentium4/sse2/gmp-mparam.h	Sun Dec 27 13:32:31 2009 +0100
+++ b/mpn/x86/pentium4/sse2/gmp-mparam.h	Sun Dec 27 13:55:50 2009 +0100
@@ -76,9 +76,9 @@
 #define MOD_1_NORM_THRESHOLD                24
 #define MOD_1_UNNORM_THRESHOLD           MP_SIZE_T_MAX  /* never */
 #define MOD_1N_TO_MOD_1_1_THRESHOLD         20
-#define MOD_1U_TO_MOD_1_1_THRESHOLD          0  /* always */
-#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0  /* always */
-#define MOD_1_2_TO_MOD_1_4_THRESHOLD         2
+#define MOD_1U_TO_MOD_1_1_THRESHOLD          9
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0
+#define MOD_1_2_TO_MOD_1_4_THRESHOLD        10
 #define PREINV_MOD_1_TO_MOD_1_THRESHOLD     32
 #define USE_PREINV_DIVREM_1                  1  /* native */
 #define DIVEXACT_1_THRESHOLD                 0  /* always (native) */
diff -r 2f273162e8bd -r 21e4d82dc81f mpn/x86_64/atom/gmp-mparam.h
--- a/mpn/x86_64/atom/gmp-mparam.h	Sun Dec 27 13:32:31 2009 +0100
+++ b/mpn/x86_64/atom/gmp-mparam.h	Sun Dec 27 13:55:50 2009 +0100
@@ -77,8 +77,8 @@
 #define MOD_1_NORM_THRESHOLD                 0  /* always */
 #define MOD_1_UNNORM_THRESHOLD               0  /* always */
 #define MOD_1N_TO_MOD_1_1_THRESHOLD         19
-#define MOD_1U_TO_MOD_1_1_THRESHOLD          0  /* always */
-#define MOD_1_1_TO_MOD_1_2_THRESHOLD         7
+#define MOD_1U_TO_MOD_1_1_THRESHOLD          7
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0
 #define MOD_1_2_TO_MOD_1_4_THRESHOLD        16
 #define PREINV_MOD_1_TO_MOD_1_THRESHOLD     69
 #define USE_PREINV_DIVREM_1                  1  /* native */
diff -r 2f273162e8bd -r 21e4d82dc81f mpn/x86_64/core2/gmp-mparam.h
--- a/mpn/x86_64/core2/gmp-mparam.h	Sun Dec 27 13:32:31 2009 +0100
+++ b/mpn/x86_64/core2/gmp-mparam.h	Sun Dec 27 13:55:50 2009 +0100
@@ -78,8 +78,8 @@
 #define MOD_1_NORM_THRESHOLD                 0  /* always */
 #define MOD_1_UNNORM_THRESHOLD               0  /* always */
 #define MOD_1N_TO_MOD_1_1_THRESHOLD          6
-#define MOD_1U_TO_MOD_1_1_THRESHOLD          0  /* always */
-#define MOD_1_1_TO_MOD_1_2_THRESHOLD         5
+#define MOD_1U_TO_MOD_1_1_THRESHOLD          5
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0
 #define MOD_1_2_TO_MOD_1_4_THRESHOLD        15
 #define PREINV_MOD_1_TO_MOD_1_THRESHOLD     10
 #define USE_PREINV_DIVREM_1                  1  /* native */
diff -r 2f273162e8bd -r 21e4d82dc81f mpn/x86_64/corei/gmp-mparam.h
--- a/mpn/x86_64/corei/gmp-mparam.h	Sun Dec 27 13:32:31 2009 +0100
+++ b/mpn/x86_64/corei/gmp-mparam.h	Sun Dec 27 13:55:50 2009 +0100
@@ -78,8 +78,8 @@
 #define MOD_1_NORM_THRESHOLD                 0  /* always */
 #define MOD_1_UNNORM_THRESHOLD               0  /* always */
 #define MOD_1N_TO_MOD_1_1_THRESHOLD          6
-#define MOD_1U_TO_MOD_1_1_THRESHOLD          0  /* always */
-#define MOD_1_1_TO_MOD_1_2_THRESHOLD         5
+#define MOD_1U_TO_MOD_1_1_THRESHOLD          5
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0
 #define MOD_1_2_TO_MOD_1_4_THRESHOLD        12
 #define PREINV_MOD_1_TO_MOD_1_THRESHOLD     11
 #define USE_PREINV_DIVREM_1                  1  /* native */
diff -r 2f273162e8bd -r 21e4d82dc81f mpn/x86_64/gmp-mparam.h
--- a/mpn/x86_64/gmp-mparam.h	Sun Dec 27 13:32:31 2009 +0100
+++ b/mpn/x86_64/gmp-mparam.h	Sun Dec 27 13:55:50 2009 +0100
@@ -77,8 +77,8 @@
 #define MOD_1_NORM_THRESHOLD                 0  /* always */
 #define MOD_1_UNNORM_THRESHOLD               0  /* always */
 #define MOD_1N_TO_MOD_1_1_THRESHOLD          9
-#define MOD_1U_TO_MOD_1_1_THRESHOLD          0  /* always */
-#define MOD_1_1_TO_MOD_1_2_THRESHOLD         4
+#define MOD_1U_TO_MOD_1_1_THRESHOLD          4
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0
 #define MOD_1_2_TO_MOD_1_4_THRESHOLD        15
 #define PREINV_MOD_1_TO_MOD_1_THRESHOLD     14
 #define USE_PREINV_DIVREM_1                  1  /* native */


More information about the gmp-commit mailing list