[Gmp-commit] /home/hgfiles/gmp: Retune.

mercurial at gmplib.org mercurial at gmplib.org
Sun Dec 13 02:05:09 CET 2009


details:   /home/hgfiles/gmp/rev/27238f2fe54d
changeset: 13044:27238f2fe54d
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Dec 13 02:05:05 2009 +0100
description:
Retune.

diffstat:

 mpn/alpha/ev6/gmp-mparam.h            |  5 +++--
 mpn/arm/gmp-mparam.h                  |  4 ++--
 mpn/powerpc32/gmp-mparam.h            |  2 +-
 mpn/powerpc64/mode64/p4/gmp-mparam.h  |  2 +-
 mpn/sparc64/gmp-mparam.h              |  2 +-
 mpn/sparc64/ultrasparc34/gmp-mparam.h |  5 +++--
 mpn/x86/k7/gmp-mparam.h               |  4 ++--
 mpn/x86/pentium4/sse2/gmp-mparam.h    |  2 +-
 mpn/x86_64/corei/gmp-mparam.h         |  1 +
 9 files changed, 15 insertions(+), 12 deletions(-)

diffs (124 lines):

diff -r 26537180dd3b -r 27238f2fe54d mpn/alpha/ev6/gmp-mparam.h
--- a/mpn/alpha/ev6/gmp-mparam.h	Sat Dec 12 12:54:36 2009 +0100
+++ b/mpn/alpha/ev6/gmp-mparam.h	Sun Dec 13 02:05:05 2009 +0100
@@ -54,10 +54,11 @@
 #define DC_DIVAPPR_Q_THRESHOLD          396
 #define DC_BDIV_QR_THRESHOLD            110
 #define DC_BDIV_Q_THRESHOLD             315
-#define BINV_NEWTON_THRESHOLD           889
+#define BINV_NEWTON_THRESHOLD          1160
+#define BINV_MULMOD_BNM1_THRESHOLD        0  /* always when newton */
 #define REDC_1_TO_REDC_N_THRESHOLD      110
 
-#define MATRIX22_STRASSEN_THRESHOLD      21
+#define MATRIX22_STRASSEN_THRESHOLD      16
 #define HGCD_THRESHOLD                  276
 #define GCD_DC_THRESHOLD               1197
 #define GCDEXT_DC_THRESHOLD             799
diff -r 26537180dd3b -r 27238f2fe54d mpn/arm/gmp-mparam.h
--- a/mpn/arm/gmp-mparam.h	Sat Dec 12 12:54:36 2009 +0100
+++ b/mpn/arm/gmp-mparam.h	Sun Dec 13 02:05:05 2009 +0100
@@ -57,8 +57,8 @@
 
 #define MATRIX22_STRASSEN_THRESHOLD      19
 #define HGCD_THRESHOLD                  110
-#define GCD_DC_THRESHOLD                562
-#define GCDEXT_DC_THRESHOLD             345
+#define GCD_DC_THRESHOLD                680
+#define GCDEXT_DC_THRESHOLD             521
 #define JACOBI_BASE_METHOD                2
 
 #define DIVREM_1_NORM_THRESHOLD           0  /* preinv always */
diff -r 26537180dd3b -r 27238f2fe54d mpn/powerpc32/gmp-mparam.h
--- a/mpn/powerpc32/gmp-mparam.h	Sat Dec 12 12:54:36 2009 +0100
+++ b/mpn/powerpc32/gmp-mparam.h	Sun Dec 13 02:05:05 2009 +0100
@@ -61,7 +61,7 @@
 #define DC_DIVAPPR_Q_THRESHOLD          153
 #define DC_BDIV_QR_THRESHOLD             54
 #define DC_BDIV_Q_THRESHOLD             124
-#define BINV_NEWTON_THRESHOLD           667
+#define BINV_NEWTON_THRESHOLD           582
 #define REDC_1_TO_REDC_N_THRESHOLD       54
 
 #define MATRIX22_STRASSEN_THRESHOLD      15
diff -r 26537180dd3b -r 27238f2fe54d mpn/powerpc64/mode64/p4/gmp-mparam.h
--- a/mpn/powerpc64/mode64/p4/gmp-mparam.h	Sat Dec 12 12:54:36 2009 +0100
+++ b/mpn/powerpc64/mode64/p4/gmp-mparam.h	Sun Dec 13 02:05:05 2009 +0100
@@ -50,7 +50,7 @@
 #define DC_DIVAPPR_Q_THRESHOLD          101
 #define DC_BDIV_QR_THRESHOLD             47
 #define DC_BDIV_Q_THRESHOLD             112
-#define BINV_NEWTON_THRESHOLD           889
+#define BINV_NEWTON_THRESHOLD           562
 #define REDC_1_TO_REDC_N_THRESHOLD       55
 
 #define MATRIX22_STRASSEN_THRESHOLD      11
diff -r 26537180dd3b -r 27238f2fe54d mpn/sparc64/gmp-mparam.h
--- a/mpn/sparc64/gmp-mparam.h	Sat Dec 12 12:54:36 2009 +0100
+++ b/mpn/sparc64/gmp-mparam.h	Sun Dec 13 02:05:05 2009 +0100
@@ -52,7 +52,7 @@
 #define DC_DIVAPPR_Q_THRESHOLD           77
 #define DC_BDIV_QR_THRESHOLD             38
 #define DC_BDIV_Q_THRESHOLD             120
-#define BINV_NEWTON_THRESHOLD           501
+#define BINV_NEWTON_THRESHOLD           390
 #define REDC_1_TO_REDC_2_THRESHOLD       10
 #define REDC_2_TO_REDC_N_THRESHOLD      117
 
diff -r 26537180dd3b -r 27238f2fe54d mpn/sparc64/ultrasparc34/gmp-mparam.h
--- a/mpn/sparc64/ultrasparc34/gmp-mparam.h	Sat Dec 12 12:54:36 2009 +0100
+++ b/mpn/sparc64/ultrasparc34/gmp-mparam.h	Sun Dec 13 02:05:05 2009 +0100
@@ -46,13 +46,14 @@
 #define MULLO_DC_THRESHOLD                0  /* never mpn_mullo_basecase */
 #define MULLO_MUL_N_THRESHOLD          2350
 
-#define MULMOD_BNM1_THRESHOLD            16
+#define MULMOD_BNM1_THRESHOLD            13
 
 #define DC_DIV_QR_THRESHOLD              16
 #define DC_DIVAPPR_Q_THRESHOLD           58
 #define DC_BDIV_QR_THRESHOLD             29
 #define DC_BDIV_Q_THRESHOLD             106
-#define BINV_NEWTON_THRESHOLD           448
+#define BINV_NEWTON_THRESHOLD           348
+#define BINV_MULMOD_BNM1_THRESHOLD        0  /* always when newton */
 #define REDC_1_TO_REDC_2_THRESHOLD       10
 #define REDC_2_TO_REDC_N_THRESHOLD      117
 
diff -r 26537180dd3b -r 27238f2fe54d mpn/x86/k7/gmp-mparam.h
--- a/mpn/x86/k7/gmp-mparam.h	Sat Dec 12 12:54:36 2009 +0100
+++ b/mpn/x86/k7/gmp-mparam.h	Sun Dec 13 02:05:05 2009 +0100
@@ -72,8 +72,8 @@
 #define DIVEXACT_1_THRESHOLD              0  /* always (native) */
 #define MODEXACT_1_ODD_THRESHOLD          0  /* always (native) */
 
-#define GET_STR_DC_THRESHOLD             22
-#define GET_STR_PRECOMPUTE_THRESHOLD     37
+#define GET_STR_DC_THRESHOLD             15
+#define GET_STR_PRECOMPUTE_THRESHOLD     32
 #define SET_STR_DC_THRESHOLD            537
 #define SET_STR_PRECOMPUTE_THRESHOLD   1576
 
diff -r 26537180dd3b -r 27238f2fe54d mpn/x86/pentium4/sse2/gmp-mparam.h
--- a/mpn/x86/pentium4/sse2/gmp-mparam.h	Sat Dec 12 12:54:36 2009 +0100
+++ b/mpn/x86/pentium4/sse2/gmp-mparam.h	Sun Dec 13 02:05:05 2009 +0100
@@ -53,7 +53,7 @@
 #define DC_DIVAPPR_Q_THRESHOLD           73
 #define DC_BDIV_QR_THRESHOLD             54
 #define DC_BDIV_Q_THRESHOLD              88
-#define BINV_NEWTON_THRESHOLD          1442
+#define BINV_NEWTON_THRESHOLD           915
 #define REDC_1_TO_REDC_N_THRESHOLD       65
 
 #define MATRIX22_STRASSEN_THRESHOLD      21
diff -r 26537180dd3b -r 27238f2fe54d mpn/x86_64/corei/gmp-mparam.h
--- a/mpn/x86_64/corei/gmp-mparam.h	Sat Dec 12 12:54:36 2009 +0100
+++ b/mpn/x86_64/corei/gmp-mparam.h	Sun Dec 13 02:05:05 2009 +0100
@@ -52,6 +52,7 @@
 #define DC_DIVAPPR_Q_THRESHOLD          131
 #define DC_BDIV_QR_THRESHOLD             31
 #define DC_BDIV_Q_THRESHOLD              63
+#define INV_NEWTON_THRESHOLD             15
 #define BINV_NEWTON_THRESHOLD           584
 #define REDC_1_TO_REDC_2_THRESHOLD       10
 #define REDC_2_TO_REDC_N_THRESHOLD       59


More information about the gmp-commit mailing list