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

mercurial at gmplib.org mercurial at gmplib.org
Sun Jan 3 07:32:21 CET 2010


details:   /home/hgfiles/gmp/rev/0cef6d3da306
changeset: 13309:0cef6d3da306
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Jan 03 06:45:52 2010 +0100
description:
Retune.

diffstat:

 mpn/alpha/ev5/gmp-mparam.h       |  13 +++++-
 mpn/alpha/ev6/gmp-mparam.h       |  28 +++++-----
 mpn/x86/k7/gmp-mparam.h          |   4 +-
 mpn/x86/pentium/mmx/gmp-mparam.h |  96 ++++++++++++++++++++++++++-------------
 mpn/x86_64/gmp-mparam.h          |   6 +-
 5 files changed, 94 insertions(+), 53 deletions(-)

diffs (216 lines):

diff -r 322dd44c70bb -r 0cef6d3da306 mpn/alpha/ev5/gmp-mparam.h
--- a/mpn/alpha/ev5/gmp-mparam.h	Sun Jan 03 04:46:17 2010 +0100
+++ b/mpn/alpha/ev5/gmp-mparam.h	Sun Jan 03 06:45:52 2010 +0100
@@ -24,7 +24,18 @@
 
 /* 600 MHz 21164A */
 
-/* Generated by tuneup.c, 2009-12-10, gcc 3.3 */
+#define DIVREM_1_NORM_THRESHOLD              0  /* preinv always */
+#define DIVREM_1_UNNORM_THRESHOLD            0  /* always */
+#define MOD_1_NORM_THRESHOLD                 0  /* always */
+#define MOD_1_UNNORM_THRESHOLD               0  /* always */
+#define MOD_1N_TO_MOD_1_1_THRESHOLD         36
+#define MOD_1U_TO_MOD_1_1_THRESHOLD          3
+#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     76
+#define USE_PREINV_DIVREM_1                  1  /* preinv always */
+#define DIVEXACT_1_THRESHOLD                 0  /* always */
+#define BMOD_1_TO_MOD_1_THRESHOLD           72
 
 #define MUL_TOOM22_THRESHOLD                14
 #define MUL_TOOM33_THRESHOLD                74
diff -r 322dd44c70bb -r 0cef6d3da306 mpn/alpha/ev6/gmp-mparam.h
--- a/mpn/alpha/ev6/gmp-mparam.h	Sun Jan 03 04:46:17 2010 +0100
+++ b/mpn/alpha/ev6/gmp-mparam.h	Sun Jan 03 06:45:52 2010 +0100
@@ -78,26 +78,26 @@
 #define DC_BDIV_QR_THRESHOLD               110
 #define DC_BDIV_Q_THRESHOLD                318
 
-#define INV_MULMOD_BNM1_THRESHOLD           70
+#define INV_MULMOD_BNM1_THRESHOLD           82
 #define INV_NEWTON_THRESHOLD               390
-#define INV_APPR_THRESHOLD                 390
+#define INV_APPR_THRESHOLD                  54
 
-#define BINV_NEWTON_THRESHOLD              399
+#define BINV_NEWTON_THRESHOLD              393
 #define REDC_1_TO_REDC_N_THRESHOLD         110
 
-#define MU_DIV_QR_THRESHOLD               1752
-#define MU_DIVAPPR_Q_THRESHOLD            1752
-#define MUPI_DIV_QR_THRESHOLD              171
+#define MU_DIV_QR_THRESHOLD               1718
+#define MU_DIVAPPR_Q_THRESHOLD            1895
+#define MUPI_DIV_QR_THRESHOLD              180
 #define MU_BDIV_QR_THRESHOLD              1387
-#define MU_BDIV_Q_THRESHOLD               1752
+#define MU_BDIV_Q_THRESHOLD               1652
 
-#define MATRIX22_STRASSEN_THRESHOLD         15
-#define HGCD_THRESHOLD                     294
-#define GCD_DC_THRESHOLD                  1310
-#define GCDEXT_DC_THRESHOLD                778
+#define MATRIX22_STRASSEN_THRESHOLD         17
+#define HGCD_THRESHOLD                     282
+#define GCD_DC_THRESHOLD                  1138
+#define GCDEXT_DC_THRESHOLD                773
 #define JACOBI_BASE_METHOD                   3
 
-#define GET_STR_DC_THRESHOLD                15
+#define GET_STR_DC_THRESHOLD                14
 #define GET_STR_PRECOMPUTE_THRESHOLD        19
-#define SET_STR_DC_THRESHOLD              3717
-#define SET_STR_PRECOMPUTE_THRESHOLD      7708
+#define SET_STR_DC_THRESHOLD              3754
+#define SET_STR_PRECOMPUTE_THRESHOLD      8097
diff -r 322dd44c70bb -r 0cef6d3da306 mpn/x86/k7/gmp-mparam.h
--- a/mpn/x86/k7/gmp-mparam.h	Sun Jan 03 04:46:17 2010 +0100
+++ b/mpn/x86/k7/gmp-mparam.h	Sun Jan 03 06:45:52 2010 +0100
@@ -47,7 +47,7 @@
 #define SQR_BASECASE_THRESHOLD               0  /* always (native) */
 #define SQR_TOOM2_THRESHOLD                 50
 #define SQR_TOOM3_THRESHOLD                 87
-#define SQR_TOOM4_THRESHOLD                148
+#define SQR_TOOM4_THRESHOLD                208
 #define SQR_TOOM6_THRESHOLD                306
 #define SQR_TOOM8_THRESHOLD                430
 
@@ -92,7 +92,7 @@
 
 #define GET_STR_DC_THRESHOLD                17
 #define GET_STR_PRECOMPUTE_THRESHOLD        34
-#define SET_STR_DC_THRESHOLD               818
+#define SET_STR_DC_THRESHOLD               542
 #define SET_STR_PRECOMPUTE_THRESHOLD      1615
 
 /* These tables need to be updated.  */
diff -r 322dd44c70bb -r 0cef6d3da306 mpn/x86/pentium/mmx/gmp-mparam.h
--- a/mpn/x86/pentium/mmx/gmp-mparam.h	Sun Jan 03 04:46:17 2010 +0100
+++ b/mpn/x86/pentium/mmx/gmp-mparam.h	Sun Jan 03 06:45:52 2010 +0100
@@ -29,45 +29,75 @@
 
 /* 233MHz P55 */
 
-/* Generated by tuneup.c, 2009-01-06, gcc 3.4 */
+#define MOD_1_NORM_THRESHOLD                 5
+#define MOD_1_UNNORM_THRESHOLD           MP_SIZE_T_MAX  /* never */
+#define MOD_1N_TO_MOD_1_1_THRESHOLD      MP_SIZE_T_MAX  /* never */
+#define MOD_1U_TO_MOD_1_1_THRESHOLD         12
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0
+#define MOD_1_2_TO_MOD_1_4_THRESHOLD        11
+#define PREINV_MOD_1_TO_MOD_1_THRESHOLD  MP_SIZE_T_MAX  /* never */
+#define USE_PREINV_DIVREM_1                  0
+#define DIVEXACT_1_THRESHOLD                 0  /* always (native) */
+#define BMOD_1_TO_MOD_1_THRESHOLD           51
 
-#define MUL_TOOM22_THRESHOLD             16
-#define MUL_TOOM33_THRESHOLD             89
-#define MUL_TOOM44_THRESHOLD            131
+#define MUL_TOOM22_THRESHOLD                16
+#define MUL_TOOM33_THRESHOLD                53
+#define MUL_TOOM44_THRESHOLD               128
+#define MUL_TOOM6H_THRESHOLD               189
+#define MUL_TOOM8H_THRESHOLD               260
 
-#define SQR_BASECASE_THRESHOLD            0  /* always (native) */
-#define SQR_TOOM2_THRESHOLD              22
-#define SQR_TOOM3_THRESHOLD              77
-#define SQR_TOOM4_THRESHOLD             168
+#define MUL_TOOM32_TO_TOOM43_THRESHOLD      89
+#define MUL_TOOM32_TO_TOOM53_THRESHOLD      91
+#define MUL_TOOM42_TO_TOOM53_THRESHOLD      90
+#define MUL_TOOM42_TO_TOOM63_THRESHOLD      56
 
-#define MULLO_BASECASE_THRESHOLD          0  /* always */
-#define MULLO_DC_THRESHOLD               40
-#define MULLO_MUL_N_THRESHOLD           266
+#define SQR_BASECASE_THRESHOLD               0  /* always (native) */
+#define SQR_TOOM2_THRESHOLD                 20
+#define SQR_TOOM3_THRESHOLD                 73
+#define SQR_TOOM4_THRESHOLD                178
+#define SQR_TOOM6_THRESHOLD                210
+#define SQR_TOOM8_THRESHOLD                375
 
-#define DIV_SB_PREINV_THRESHOLD           4
-#define DIV_DC_THRESHOLD                 43
-#define POWM_THRESHOLD                   64
+#define MULMOD_BNM1_THRESHOLD               11
+#define SQRMOD_BNM1_THRESHOLD               12
 
-#define MATRIX22_STRASSEN_THRESHOLD      13
-#define HGCD_THRESHOLD                   95
-#define GCD_DC_THRESHOLD                316
-#define GCDEXT_DC_THRESHOLD             316
-#define JACOBI_BASE_METHOD                2
+#define MUL_FFT_TABLE  { 304, 672, 1152, 3584, 10240, 40960, 163840, 0 }
+#define MUL_FFT_MODF_THRESHOLD             368
+#define MUL_FFT_THRESHOLD                11264
 
-#define USE_PREINV_DIVREM_1               0
-#define USE_PREINV_MOD_1                  1  /* native */
-#define DIVEXACT_1_THRESHOLD              0  /* always (native) */
-#define MODEXACT_1_ODD_THRESHOLD          0  /* always (native) */
+#define SQR_FFT_TABLE  { 272, 672, 1152, 4608, 10240, 40960, 98304, 393216, 0 }
+#define SQR_FFT_MODF_THRESHOLD             288
+#define SQR_FFT_THRESHOLD                 7168
 
-#define GET_STR_DC_THRESHOLD             17
-#define GET_STR_PRECOMPUTE_THRESHOLD     27
-#define SET_STR_DC_THRESHOLD            527
-#define SET_STR_PRECOMPUTE_THRESHOLD   1069
+#define MULLO_BASECASE_THRESHOLD             0  /* always */
+#define MULLO_DC_THRESHOLD                  45
+#define MULLO_MUL_N_THRESHOLD            18087
 
-#define MUL_FFT_TABLE  { 304, 672, 1152, 3584, 10240, 40960, 0 }
-#define MUL_FFT_MODF_THRESHOLD          320
-#define MUL_FFT_THRESHOLD              3840
+#define DC_DIV_QR_THRESHOLD                 43
+#define DC_DIVAPPR_Q_THRESHOLD             170
+#define DC_BDIV_QR_THRESHOLD                43
+#define DC_BDIV_Q_THRESHOLD                113
 
-#define SQR_FFT_TABLE  { 304, 672, 1152, 4608, 10240, 24576, 0 }
-#define SQR_FFT_MODF_THRESHOLD          320
-#define SQR_FFT_THRESHOLD              3840
+#define INV_MULMOD_BNM1_THRESHOLD          102
+#define INV_NEWTON_THRESHOLD               179
+#define INV_APPR_THRESHOLD                 173
+
+#define BINV_NEWTON_THRESHOLD              197
+#define REDC_1_TO_REDC_N_THRESHOLD          47
+
+#define MU_DIV_QR_THRESHOLD               1187
+#define MU_DIVAPPR_Q_THRESHOLD            1142
+#define MUPI_DIV_QR_THRESHOLD               90
+#define MU_BDIV_QR_THRESHOLD               998
+#define MU_BDIV_Q_THRESHOLD               1017
+
+#define MATRIX22_STRASSEN_THRESHOLD         12
+#define HGCD_THRESHOLD                      88
+#define GCD_DC_THRESHOLD                   293
+#define GCDEXT_DC_THRESHOLD                233
+#define JACOBI_BASE_METHOD                   2
+
+#define GET_STR_DC_THRESHOLD                14
+#define GET_STR_PRECOMPUTE_THRESHOLD        26
+#define SET_STR_DC_THRESHOLD               272
+#define SET_STR_PRECOMPUTE_THRESHOLD       920
diff -r 322dd44c70bb -r 0cef6d3da306 mpn/x86_64/gmp-mparam.h
--- a/mpn/x86_64/gmp-mparam.h	Sun Jan 03 04:46:17 2010 +0100
+++ b/mpn/x86_64/gmp-mparam.h	Sun Jan 03 06:45:52 2010 +0100
@@ -47,9 +47,9 @@
 #define SQR_BASECASE_THRESHOLD               0  /* always (native) */
 #define SQR_TOOM2_THRESHOLD                 38
 #define SQR_TOOM3_THRESHOLD                121
-#define SQR_TOOM4_THRESHOLD                348
-#define SQR_TOOM6_THRESHOLD                462
-#define SQR_TOOM8_THRESHOLD                644
+#define SQR_TOOM4_THRESHOLD                512
+#define SQR_TOOM6_THRESHOLD                686
+#define SQR_TOOM8_THRESHOLD                686
 
 #define MULMOD_BNM1_THRESHOLD               17
 #define SQRMOD_BNM1_THRESHOLD               17


More information about the gmp-commit mailing list