[Gmp-commit] /var/hg/gmp: Retune.

mercurial at gmplib.org mercurial at gmplib.org
Wed Mar 9 23:42:48 CET 2011


details:   /var/hg/gmp/rev/a9f43e21085c
changeset: 14022:a9f43e21085c
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Wed Mar 09 23:42:45 2011 +0100
description:
Retune.

diffstat:

 mpn/sparc64/ultrasparc34/gmp-mparam.h |  11 +++++----
 mpn/x86/atom/gmp-mparam.h             |  38 ++++++++++++++++----------------
 mpn/x86/pentium4/sse2/gmp-mparam.h    |   6 ++--
 mpn/x86_64/core2/gmp-mparam.h         |  28 ++++++++++++------------
 mpn/x86_64/coreisbr/gmp-mparam.h      |  40 +++++++++++++++++-----------------
 5 files changed, 62 insertions(+), 61 deletions(-)

diffs (267 lines):

diff -r 1c891bd40cff -r a9f43e21085c mpn/sparc64/ultrasparc34/gmp-mparam.h
--- a/mpn/sparc64/ultrasparc34/gmp-mparam.h	Wed Mar 09 22:11:17 2011 +0100
+++ b/mpn/sparc64/ultrasparc34/gmp-mparam.h	Wed Mar 09 23:42:45 2011 +0100
@@ -25,20 +25,21 @@
 
 #define DIVREM_1_NORM_THRESHOLD              0  /* always */
 #define DIVREM_1_UNNORM_THRESHOLD            0  /* always */
+#define MOD_1_1P_METHOD                      2
 #define MOD_1_NORM_THRESHOLD                 0  /* always */
 #define MOD_1_UNNORM_THRESHOLD               0  /* always */
-#define MOD_1N_TO_MOD_1_1_THRESHOLD      MP_SIZE_T_MAX  /* never */
+#define MOD_1N_TO_MOD_1_1_THRESHOLD          7
 #define MOD_1U_TO_MOD_1_1_THRESHOLD         38
 #define MOD_1_1_TO_MOD_1_2_THRESHOLD         0  /* never mpn_mod_1_1p */
-#define MOD_1_2_TO_MOD_1_4_THRESHOLD     MP_SIZE_T_MAX
-#define PREINV_MOD_1_TO_MOD_1_THRESHOLD  MP_SIZE_T_MAX  /* never */
+#define MOD_1_2_TO_MOD_1_4_THRESHOLD         0  /* never mpn_mod_1s_2p */
+#define PREINV_MOD_1_TO_MOD_1_THRESHOLD     33
 #define USE_PREINV_DIVREM_1                  1
 #define DIVEXACT_1_THRESHOLD                 0  /* always */
 #define BMOD_1_TO_MOD_1_THRESHOLD        MP_SIZE_T_MAX  /* never */
 
 #define MUL_TOOM22_THRESHOLD                30
 #define MUL_TOOM33_THRESHOLD                93
-#define MUL_TOOM44_THRESHOLD               143
+#define MUL_TOOM44_THRESHOLD               127
 #define MUL_TOOM6H_THRESHOLD               165
 #define MUL_TOOM8H_THRESHOLD               303
 
@@ -156,7 +157,7 @@
 #define SQR_FFT_TABLE3_SIZE 182
 #define SQR_FFT_THRESHOLD                 1984
 
-#define MULLO_BASECASE_THRESHOLD            26
+#define MULLO_BASECASE_THRESHOLD             8
 #define MULLO_DC_THRESHOLD                   0  /* never mpn_mullo_basecase */
 #define MULLO_MUL_N_THRESHOLD             3791
 
diff -r 1c891bd40cff -r a9f43e21085c mpn/x86/atom/gmp-mparam.h
--- a/mpn/x86/atom/gmp-mparam.h	Wed Mar 09 22:11:17 2011 +0100
+++ b/mpn/x86/atom/gmp-mparam.h	Wed Mar 09 23:42:45 2011 +0100
@@ -34,26 +34,26 @@
 #define DIVEXACT_1_THRESHOLD                 0  /* always (native) */
 #define BMOD_1_TO_MOD_1_THRESHOLD           33
 
-#define MUL_TOOM22_THRESHOLD                22
-#define MUL_TOOM33_THRESHOLD                81
-#define MUL_TOOM44_THRESHOLD               130
+#define MUL_TOOM22_THRESHOLD                20
+#define MUL_TOOM33_THRESHOLD                78
+#define MUL_TOOM44_THRESHOLD               184
 #define MUL_TOOM6H_THRESHOLD               270
-#define MUL_TOOM8H_THRESHOLD               430
+#define MUL_TOOM8H_THRESHOLD               406
 
-#define MUL_TOOM32_TO_TOOM43_THRESHOLD      81
-#define MUL_TOOM32_TO_TOOM53_THRESHOLD     114
-#define MUL_TOOM42_TO_TOOM53_THRESHOLD      77
-#define MUL_TOOM42_TO_TOOM63_THRESHOLD      96
+#define MUL_TOOM32_TO_TOOM43_THRESHOLD      79
+#define MUL_TOOM32_TO_TOOM53_THRESHOLD     126
+#define MUL_TOOM42_TO_TOOM53_THRESHOLD     121
+#define MUL_TOOM42_TO_TOOM63_THRESHOLD     127
 
 #define SQR_BASECASE_THRESHOLD               0  /* always (native) */
-#define SQR_TOOM2_THRESHOLD                 30
-#define SQR_TOOM3_THRESHOLD                 81
-#define SQR_TOOM4_THRESHOLD                154
-#define SQR_TOOM6_THRESHOLD                222
-#define SQR_TOOM8_THRESHOLD                309
+#define SQR_TOOM2_THRESHOLD                 34
+#define SQR_TOOM3_THRESHOLD                110
+#define SQR_TOOM4_THRESHOLD                184
+#define SQR_TOOM6_THRESHOLD                303
+#define SQR_TOOM8_THRESHOLD                547
 
-#define MULMOD_BNM1_THRESHOLD               13
-#define SQRMOD_BNM1_THRESHOLD               13
+#define MULMOD_BNM1_THRESHOLD               14
+#define SQRMOD_BNM1_THRESHOLD               18
 
 #define MUL_FFT_MODF_THRESHOLD             376  /* k = 5 */
 #define MUL_FFT_TABLE3                                      \
@@ -131,12 +131,12 @@
 #define MU_BDIV_Q_THRESHOLD               1334
 
 #define MATRIX22_STRASSEN_THRESHOLD         15
-#define HGCD_THRESHOLD                     119
-#define GCD_DC_THRESHOLD                   435
-#define GCDEXT_DC_THRESHOLD                300
+#define HGCD_THRESHOLD                     126
+#define GCD_DC_THRESHOLD                   483
+#define GCDEXT_DC_THRESHOLD                351
 #define JACOBI_BASE_METHOD                   3
 
 #define GET_STR_DC_THRESHOLD                13
 #define GET_STR_PRECOMPUTE_THRESHOLD        24
 #define SET_STR_DC_THRESHOLD               272
-#define SET_STR_PRECOMPUTE_THRESHOLD       851
+#define SET_STR_PRECOMPUTE_THRESHOLD      1116
diff -r 1c891bd40cff -r a9f43e21085c mpn/x86/pentium4/sse2/gmp-mparam.h
--- a/mpn/x86/pentium4/sse2/gmp-mparam.h	Wed Mar 09 22:11:17 2011 +0100
+++ b/mpn/x86/pentium4/sse2/gmp-mparam.h	Wed Mar 09 23:42:45 2011 +0100
@@ -34,7 +34,7 @@
 #define BMOD_1_TO_MOD_1_THRESHOLD           20
 
 #define MUL_TOOM22_THRESHOLD                31
-#define MUL_TOOM33_THRESHOLD               216
+#define MUL_TOOM33_THRESHOLD               120
 #define MUL_TOOM44_THRESHOLD               286
 #define MUL_TOOM6H_THRESHOLD               426
 #define MUL_TOOM8H_THRESHOLD               592
@@ -112,8 +112,8 @@
 #define DC_BDIV_Q_THRESHOLD                 80
 
 #define INV_MULMOD_BNM1_THRESHOLD           60
-#define INV_NEWTON_THRESHOLD               133
-#define INV_APPR_THRESHOLD                 114
+#define INV_NEWTON_THRESHOLD               244
+#define INV_APPR_THRESHOLD                  98
 
 #define BINV_NEWTON_THRESHOLD              276
 #define REDC_1_TO_REDC_N_THRESHOLD          63
diff -r 1c891bd40cff -r a9f43e21085c mpn/x86_64/core2/gmp-mparam.h
--- a/mpn/x86_64/core2/gmp-mparam.h	Wed Mar 09 22:11:17 2011 +0100
+++ b/mpn/x86_64/core2/gmp-mparam.h	Wed Mar 09 23:42:45 2011 +0100
@@ -36,9 +36,9 @@
 
 #define MUL_TOOM22_THRESHOLD                23
 #define MUL_TOOM33_THRESHOLD                65
-#define MUL_TOOM44_THRESHOLD               184
-#define MUL_TOOM6H_THRESHOLD               254
-#define MUL_TOOM8H_THRESHOLD               357
+#define MUL_TOOM44_THRESHOLD               178
+#define MUL_TOOM6H_THRESHOLD               222
+#define MUL_TOOM8H_THRESHOLD                 0
 
 #define MUL_TOOM32_TO_TOOM43_THRESHOLD      69
 #define MUL_TOOM32_TO_TOOM53_THRESHOLD     107
@@ -48,9 +48,9 @@
 #define SQR_BASECASE_THRESHOLD               0  /* always (native) */
 #define SQR_TOOM2_THRESHOLD                 26
 #define SQR_TOOM3_THRESHOLD                 85
-#define SQR_TOOM4_THRESHOLD                143
-#define SQR_TOOM6_THRESHOLD                318
-#define SQR_TOOM8_THRESHOLD                462
+#define SQR_TOOM4_THRESHOLD                160
+#define SQR_TOOM6_THRESHOLD                218
+#define SQR_TOOM8_THRESHOLD                296
 
 #define MULMOD_BNM1_THRESHOLD               15
 #define SQRMOD_BNM1_THRESHOLD               15
@@ -153,9 +153,9 @@
 #define SQR_FFT_TABLE3_SIZE 178
 #define SQR_FFT_THRESHOLD                 2752
 
-#define MULLO_BASECASE_THRESHOLD             4
-#define MULLO_DC_THRESHOLD                  18
-#define MULLO_MUL_N_THRESHOLD             9174
+#define MULLO_BASECASE_THRESHOLD             3
+#define MULLO_DC_THRESHOLD                  20
+#define MULLO_MUL_N_THRESHOLD            10950
 
 #define DC_DIV_QR_THRESHOLD                 47
 #define DC_DIVAPPR_Q_THRESHOLD             179
@@ -166,11 +166,11 @@
 #define INV_NEWTON_THRESHOLD               172
 #define INV_APPR_THRESHOLD                 173
 
-#define BINV_NEWTON_THRESHOLD              246
-#define REDC_1_TO_REDC_2_THRESHOLD           4
+#define BINV_NEWTON_THRESHOLD              232
+#define REDC_1_TO_REDC_2_THRESHOLD           8
 #define REDC_2_TO_REDC_N_THRESHOLD          63
 
-#define MU_DIV_QR_THRESHOLD               1187
+#define MU_DIV_QR_THRESHOLD               1334
 #define MU_DIVAPPR_Q_THRESHOLD            1210
 #define MUPI_DIV_QR_THRESHOLD               74
 #define MU_BDIV_QR_THRESHOLD              1037
@@ -184,5 +184,5 @@
 
 #define GET_STR_DC_THRESHOLD                13
 #define GET_STR_PRECOMPUTE_THRESHOLD        23
-#define SET_STR_DC_THRESHOLD               172
-#define SET_STR_PRECOMPUTE_THRESHOLD      2182
+#define SET_STR_DC_THRESHOLD               746
+#define SET_STR_PRECOMPUTE_THRESHOLD      1893
diff -r 1c891bd40cff -r a9f43e21085c mpn/x86_64/coreisbr/gmp-mparam.h
--- a/mpn/x86_64/coreisbr/gmp-mparam.h	Wed Mar 09 22:11:17 2011 +0100
+++ b/mpn/x86_64/coreisbr/gmp-mparam.h	Wed Mar 09 23:42:45 2011 +0100
@@ -37,23 +37,23 @@
 #define MUL_TOOM22_THRESHOLD                18
 #define MUL_TOOM33_THRESHOLD                57
 #define MUL_TOOM44_THRESHOLD               166
-#define MUL_TOOM6H_THRESHOLD               387
-#define MUL_TOOM8H_THRESHOLD               527
+#define MUL_TOOM6H_THRESHOLD               226
+#define MUL_TOOM8H_THRESHOLD               333
 
-#define MUL_TOOM32_TO_TOOM43_THRESHOLD     105
-#define MUL_TOOM32_TO_TOOM53_THRESHOLD     114
-#define MUL_TOOM42_TO_TOOM53_THRESHOLD     113
+#define MUL_TOOM32_TO_TOOM43_THRESHOLD      97
+#define MUL_TOOM32_TO_TOOM53_THRESHOLD     108
+#define MUL_TOOM42_TO_TOOM53_THRESHOLD     105
 #define MUL_TOOM42_TO_TOOM63_THRESHOLD     114
 
 #define SQR_BASECASE_THRESHOLD               0  /* always (native) */
 #define SQR_TOOM2_THRESHOLD                 26
-#define SQR_TOOM3_THRESHOLD                 93
-#define SQR_TOOM4_THRESHOLD                393
+#define SQR_TOOM3_THRESHOLD                 81
+#define SQR_TOOM4_THRESHOLD                348
 #define SQR_TOOM6_THRESHOLD                  0
-#define SQR_TOOM8_THRESHOLD                592
+#define SQR_TOOM8_THRESHOLD                458
 
-#define MULMOD_BNM1_THRESHOLD               13
-#define SQRMOD_BNM1_THRESHOLD               15
+#define MULMOD_BNM1_THRESHOLD               11
+#define SQRMOD_BNM1_THRESHOLD               16
 
 #define MUL_FFT_MODF_THRESHOLD             376  /* k = 5 */
 #define MUL_FFT_TABLE3                                      \
@@ -107,25 +107,25 @@
 
 #define MULLO_BASECASE_THRESHOLD             5
 #define MULLO_DC_THRESHOLD                  33
-#define MULLO_MUL_N_THRESHOLD             6633
+#define MULLO_MUL_N_THRESHOLD             8648
 
-#define DC_DIV_QR_THRESHOLD                 39
-#define DC_DIVAPPR_Q_THRESHOLD             119
+#define DC_DIV_QR_THRESHOLD                 34
+#define DC_DIVAPPR_Q_THRESHOLD             111
 #define DC_BDIV_QR_THRESHOLD                31
-#define DC_BDIV_Q_THRESHOLD                 78
+#define DC_BDIV_Q_THRESHOLD                 71
 
-#define INV_MULMOD_BNM1_THRESHOLD           50
-#define INV_NEWTON_THRESHOLD               125
+#define INV_MULMOD_BNM1_THRESHOLD           38
+#define INV_NEWTON_THRESHOLD               127
 #define INV_APPR_THRESHOLD                 123
 
-#define BINV_NEWTON_THRESHOLD              198
+#define BINV_NEWTON_THRESHOLD              181
 #define REDC_1_TO_REDC_2_THRESHOLD          17
 #define REDC_2_TO_REDC_N_THRESHOLD          51
 
 #define MU_DIV_QR_THRESHOLD               1334
 #define MU_DIVAPPR_Q_THRESHOLD            1387
 #define MUPI_DIV_QR_THRESHOLD               57
-#define MU_BDIV_QR_THRESHOLD               998
+#define MU_BDIV_QR_THRESHOLD              1142
 #define MU_BDIV_Q_THRESHOLD               1308
 
 #define MATRIX22_STRASSEN_THRESHOLD         15
@@ -136,5 +136,5 @@
 
 #define GET_STR_DC_THRESHOLD                12
 #define GET_STR_PRECOMPUTE_THRESHOLD        21
-#define SET_STR_DC_THRESHOLD               552
-#define SET_STR_PRECOMPUTE_THRESHOLD      1655
+#define SET_STR_DC_THRESHOLD               802
+#define SET_STR_PRECOMPUTE_THRESHOLD      1712


More information about the gmp-commit mailing list