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

mercurial at gmplib.org mercurial at gmplib.org
Sun Dec 27 03:25:39 CET 2009


details:   /home/hgfiles/gmp/rev/36d1f7594af9
changeset: 13234:36d1f7594af9
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Dec 27 03:25:36 2009 +0100
description:
Retune.

diffstat:

 mpn/alpha/ev5/gmp-mparam.h            |  101 +++++++++++++++++-------------
 mpn/arm/gmp-mparam.h                  |  105 ++++++++++++++++---------------
 mpn/pa64/gmp-mparam.h                 |  109 +++++++++++++++++---------------
 mpn/sparc64/ultrasparc34/gmp-mparam.h |  111 +++++++++++++++++----------------
 4 files changed, 227 insertions(+), 199 deletions(-)

diffs (truncated from 506 to 300 lines):

diff -r 57d564d44b59 -r 36d1f7594af9 mpn/alpha/ev5/gmp-mparam.h
--- a/mpn/alpha/ev5/gmp-mparam.h	Sun Dec 27 02:22:31 2009 +0100
+++ b/mpn/alpha/ev5/gmp-mparam.h	Sun Dec 27 03:25:36 2009 +0100
@@ -26,61 +26,74 @@
 
 /* Generated by tuneup.c, 2009-12-10, gcc 3.3 */
 
-#define MUL_TOOM22_THRESHOLD             14
-#define MUL_TOOM33_THRESHOLD             74
-#define MUL_TOOM44_THRESHOLD            118
+#define MUL_TOOM22_THRESHOLD                14
+#define MUL_TOOM33_THRESHOLD                74
+#define MUL_TOOM44_THRESHOLD               130
+#define MUL_TOOM6H_THRESHOLD               155
+#define MUL_TOOM8H_THRESHOLD               236
 
-#define SQR_BASECASE_THRESHOLD            4
-#define SQR_TOOM2_THRESHOLD              28
-#define SQR_TOOM3_THRESHOLD              77
-#define SQR_TOOM4_THRESHOLD             136
+#define MUL_TOOM32_TO_TOOM43_THRESHOLD      73
+#define MUL_TOOM32_TO_TOOM53_THRESHOLD      84
+#define MUL_TOOM42_TO_TOOM53_THRESHOLD      73
+#define MUL_TOOM42_TO_TOOM63_THRESHOLD      56
+
+#define SQR_BASECASE_THRESHOLD               4
+#define SQR_TOOM2_THRESHOLD                 26
+#define SQR_TOOM3_THRESHOLD                 53
+#define SQR_TOOM4_THRESHOLD                136
+#define SQR_TOOM6_THRESHOLD                173
+#define SQR_TOOM8_THRESHOLD                254
+
+#define MULMOD_BNM1_THRESHOLD                9
+#define SQRMOD_BNM1_THRESHOLD               14
 
 #define MUL_FFT_TABLE  { 240, 480, 1344, 1792, 5120, 20480, 81920, 196608, 0 }
-#define MUL_FFT_MODF_THRESHOLD          240
-#define MUL_FFT_THRESHOLD              1920
+#define MUL_FFT_MODF_THRESHOLD             240
+#define MUL_FFT_THRESHOLD                 1920
 
 #define SQR_FFT_TABLE  { 240, 480, 1216, 1792, 5120, 12288, 81920, 196608, 0 }
-#define SQR_FFT_MODF_THRESHOLD          208
-#define SQR_FFT_THRESHOLD              1408
+#define SQR_FFT_MODF_THRESHOLD             208
+#define SQR_FFT_THRESHOLD                 1920
 
-#define MULLO_BASECASE_THRESHOLD          0  /* always */
-#define MULLO_DC_THRESHOLD               44
-#define MULLO_MUL_N_THRESHOLD           246
+#define MULLO_BASECASE_THRESHOLD             0  /* always */
+#define MULLO_DC_THRESHOLD                  44
+#define MULLO_MUL_N_THRESHOLD              246
 
-#define MULMOD_BNM1_THRESHOLD             9
+#define DC_DIV_QR_THRESHOLD                 47
+#define DC_DIVAPPR_Q_THRESHOLD             182
+#define DC_BDIV_QR_THRESHOLD                47
+#define DC_BDIV_Q_THRESHOLD                168
 
-#define DC_DIV_QR_THRESHOLD              54
-#define DC_DIVAPPR_Q_THRESHOLD          180
-#define DC_BDIV_QR_THRESHOLD             47
-#define DC_BDIV_Q_THRESHOLD             181
-#define INV_MULMOD_BNM1_THRESHOLD       100
-#define INV_NEWTON_THRESHOLD            196
-#define INV_APPR_THRESHOLD               35
-#define BINV_NEWTON_THRESHOLD           214
-#define REDC_1_TO_REDC_N_THRESHOLD       77
+#define INV_MULMOD_BNM1_THRESHOLD           55
+#define INV_NEWTON_THRESHOLD               187
+#define INV_APPR_THRESHOLD                 179
 
-#define MATRIX22_STRASSEN_THRESHOLD      15
-#define HGCD_THRESHOLD                  108
-#define GCD_DC_THRESHOLD                321
-#define GCDEXT_DC_THRESHOLD             217
-#define JACOBI_BASE_METHOD                3
+#define BINV_NEWTON_THRESHOLD              220
+#define REDC_1_TO_REDC_N_THRESHOLD          77
 
-#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_1_1_THRESHOLD                13
-#define MOD_1_2_THRESHOLD                14
-#define MOD_1_4_THRESHOLD                16
-#define USE_PREINV_DIVREM_1               1  /* preinv always */
-#define USE_PREINV_MOD_1                  1  /* preinv always */
-#define DIVEXACT_1_THRESHOLD              0  /* always */
-#define MODEXACT_1_ODD_THRESHOLD          0  /* always */
+#define MATRIX22_STRASSEN_THRESHOLD         11
+#define HGCD_THRESHOLD                      96
+#define GCD_DC_THRESHOLD                   309
+#define GCDEXT_DC_THRESHOLD                233
+#define JACOBI_BASE_METHOD                   2
 
-#define GET_STR_DC_THRESHOLD             20
-#define GET_STR_PRECOMPUTE_THRESHOLD     32
-#define SET_STR_DC_THRESHOLD            532
-#define SET_STR_PRECOMPUTE_THRESHOLD   1501
+#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         33
+#define MOD_1U_TO_MOD_1_1_THRESHOLD          0  /* always */
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         5
+#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 */
+#define DIVEXACT_1_THRESHOLD                 0  /* always */
+#define BMOD_1_TO_MOD_1_THRESHOLD           75
+
+#define GET_STR_DC_THRESHOLD                15
+#define GET_STR_PRECOMPUTE_THRESHOLD        25
+#define SET_STR_DC_THRESHOLD               470
+#define SET_STR_PRECOMPUTE_THRESHOLD      1452
 
 /* These tables need to be updated.  */
 
diff -r 57d564d44b59 -r 36d1f7594af9 mpn/arm/gmp-mparam.h
--- a/mpn/arm/gmp-mparam.h	Sun Dec 27 02:22:31 2009 +0100
+++ b/mpn/arm/gmp-mparam.h	Sun Dec 27 03:25:36 2009 +0100
@@ -23,67 +23,72 @@
 
 /* 593MHz ARM (gcc50.fsffrance.org) */
 
-#define MUL_TOOM22_THRESHOLD               34
-#define MUL_TOOM33_THRESHOLD              121
-#define MUL_TOOM44_THRESHOLD              191
+#define MUL_TOOM22_THRESHOLD                34
+#define MUL_TOOM33_THRESHOLD               121
+#define MUL_TOOM44_THRESHOLD               191
+#define MUL_TOOM6H_THRESHOLD               366
+#define MUL_TOOM8H_THRESHOLD               547
 
-#define MUL_TOOM32_TO_TOOM43_THRESHOLD    129
-#define MUL_TOOM32_TO_TOOM53_THRESHOLD    191
-#define MUL_TOOM42_TO_TOOM53_THRESHOLD    117
-#define MUL_TOOM42_TO_TOOM63_THRESHOLD    137
+#define MUL_TOOM32_TO_TOOM43_THRESHOLD     129
+#define MUL_TOOM32_TO_TOOM53_THRESHOLD     199
+#define MUL_TOOM42_TO_TOOM53_THRESHOLD     117
+#define MUL_TOOM42_TO_TOOM63_THRESHOLD     134
 
-#define SQR_BASECASE_THRESHOLD             13
-#define SQR_TOOM2_THRESHOLD                78
-#define SQR_TOOM3_THRESHOLD               141
-#define SQR_TOOM4_THRESHOLD               212
+#define SQR_BASECASE_THRESHOLD              13
+#define SQR_TOOM2_THRESHOLD                 78
+#define SQR_TOOM3_THRESHOLD                141
+#define SQR_TOOM4_THRESHOLD                212
+#define SQR_TOOM6_THRESHOLD                330
+#define SQR_TOOM8_THRESHOLD                422
 
-#define MULMOD_BNM1_THRESHOLD              20
-#define SQRMOD_BNM1_THRESHOLD              26
+#define MULMOD_BNM1_THRESHOLD               19
+#define SQRMOD_BNM1_THRESHOLD               25
 
 #define MUL_FFT_TABLE  { 400, 928, 1664, 4608, 14336, 40960, 163840, 655360, 0 }
-#define MUL_FFT_MODF_THRESHOLD            416
-#define MUL_FFT_THRESHOLD                6400
+#define MUL_FFT_MODF_THRESHOLD             416
+#define MUL_FFT_THRESHOLD                13312
 
 #define SQR_FFT_TABLE  { 432, 928, 1664, 4608, 10240, 40960, 163840, 655360, 0 }
-#define SQR_FFT_MODF_THRESHOLD            392
-#define SQR_FFT_THRESHOLD                7168
+#define SQR_FFT_MODF_THRESHOLD             392
+#define SQR_FFT_THRESHOLD                11264
 
-#define MULLO_BASECASE_THRESHOLD            0  /* always */
-#define MULLO_DC_THRESHOLD                120
-#define MULLO_MUL_N_THRESHOLD           12790
+#define MULLO_BASECASE_THRESHOLD             0  /* always */
+#define MULLO_DC_THRESHOLD                 120
+#define MULLO_MUL_N_THRESHOLD            19371
 
-#define DC_DIV_QR_THRESHOLD               132
-#define DC_DIVAPPR_Q_THRESHOLD            450
-#define DC_BDIV_QR_THRESHOLD              127
-#define DC_BDIV_Q_THRESHOLD               296
+#define DC_DIV_QR_THRESHOLD                132
+#define DC_DIVAPPR_Q_THRESHOLD             446
+#define DC_BDIV_QR_THRESHOLD               127
+#define DC_BDIV_Q_THRESHOLD                298
 
-#define INV_MULMOD_BNM1_THRESHOLD          66
-#define INV_NEWTON_THRESHOLD              458
-#define INV_APPR_THRESHOLD                 78
+#define INV_MULMOD_BNM1_THRESHOLD           66
+#define INV_NEWTON_THRESHOLD               462
+#define INV_APPR_THRESHOLD                 454
 
-#define BINV_NEWTON_THRESHOLD            1105
-#define REDC_1_TO_REDC_N_THRESHOLD        116
+#define BINV_NEWTON_THRESHOLD             1055
+#define REDC_1_TO_REDC_N_THRESHOLD         116
 
-#define MATRIX22_STRASSEN_THRESHOLD        18
-#define HGCD_THRESHOLD                    106
-#define GCD_DC_THRESHOLD                  531
-#define GCDEXT_DC_THRESHOLD               562
-#define JACOBI_BASE_METHOD                  2
+#define MATRIX22_STRASSEN_THRESHOLD         17
+#define HGCD_THRESHOLD                     105
+#define GCD_DC_THRESHOLD                   947
+#define GCDEXT_DC_THRESHOLD                403
+#define JACOBI_BASE_METHOD                   2
 
-#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_1_1_THRESHOLD                   8
-#define MOD_1_2_THRESHOLD               MP_SIZE_T_MAX  /* never */
-#define MOD_1_4_THRESHOLD               MP_SIZE_T_MAX  /* never */
-#define USE_PREINV_DIVREM_1                 1  /* preinv always */
-#define USE_PREINV_MOD_1                    1  /* preinv always */
-#define DIVREM_2_THRESHOLD                  0  /* preinv always */
-#define DIVEXACT_1_THRESHOLD                0  /* always */
-#define MODEXACT_1_ODD_THRESHOLD        MP_SIZE_T_MAX  /* never */
+#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         17
+#define MOD_1U_TO_MOD_1_1_THRESHOLD         10
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD     MP_SIZE_T_MAX  /* never */
+#define MOD_1_2_TO_MOD_1_4_THRESHOLD     MP_SIZE_T_MAX  /* never */
+#define PREINV_MOD_1_TO_MOD_1_THRESHOLD     27
+#define USE_PREINV_DIVREM_1                  1  /* preinv always */
+#define DIVREM_2_THRESHOLD                   0  /* preinv always */
+#define DIVEXACT_1_THRESHOLD                 0  /* always */
+#define BMOD_1_TO_MOD_1_THRESHOLD           44
 
-#define GET_STR_DC_THRESHOLD               14
-#define GET_STR_PRECOMPUTE_THRESHOLD       28
-#define SET_STR_DC_THRESHOLD              315
-#define SET_STR_PRECOMPUTE_THRESHOLD     1037
+#define GET_STR_DC_THRESHOLD                14
+#define GET_STR_PRECOMPUTE_THRESHOLD        29
+#define SET_STR_DC_THRESHOLD               318
+#define SET_STR_PRECOMPUTE_THRESHOLD      1043
diff -r 57d564d44b59 -r 36d1f7594af9 mpn/pa64/gmp-mparam.h
--- a/mpn/pa64/gmp-mparam.h	Sun Dec 27 02:22:31 2009 +0100
+++ b/mpn/pa64/gmp-mparam.h	Sun Dec 27 03:25:36 2009 +0100
@@ -23,67 +23,72 @@
 
 /* 440MHz PA8200 */
 
-#define MUL_TOOM22_THRESHOLD               30
-#define MUL_TOOM33_THRESHOLD              113
-#define MUL_TOOM44_THRESHOLD              195
+#define MUL_TOOM22_THRESHOLD                30
+#define MUL_TOOM33_THRESHOLD               113
+#define MUL_TOOM44_THRESHOLD               195
+#define MUL_TOOM6H_THRESHOLD               222
+#define MUL_TOOM8H_THRESHOLD               290
 
-#define MUL_TOOM32_TO_TOOM43_THRESHOLD    130
-#define MUL_TOOM32_TO_TOOM53_THRESHOLD    229
-#define MUL_TOOM42_TO_TOOM53_THRESHOLD    132
-#define MUL_TOOM42_TO_TOOM63_THRESHOLD     54
+#define MUL_TOOM32_TO_TOOM43_THRESHOLD     130
+#define MUL_TOOM32_TO_TOOM53_THRESHOLD     229
+#define MUL_TOOM42_TO_TOOM53_THRESHOLD     130
+#define MUL_TOOM42_TO_TOOM63_THRESHOLD      54
 
-#define SQR_BASECASE_THRESHOLD              5
-#define SQR_TOOM2_THRESHOLD                60
-#define SQR_TOOM3_THRESHOLD               120
-#define SQR_TOOM4_THRESHOLD               280
+#define SQR_BASECASE_THRESHOLD               5
+#define SQR_TOOM2_THRESHOLD                 56
+#define SQR_TOOM3_THRESHOLD                169
+#define SQR_TOOM4_THRESHOLD                280
+#define SQR_TOOM6_THRESHOLD                280
+#define SQR_TOOM8_THRESHOLD                296
 
-#define MULMOD_BNM1_THRESHOLD              15
-#define SQRMOD_BNM1_THRESHOLD              19
+#define MULMOD_BNM1_THRESHOLD               15
+#define SQRMOD_BNM1_THRESHOLD               19
 
-#define MUL_FFT_TABLE  { 336, 800, 1600, 2816, 7168, 20480, 81920, 327680, 0 }
-#define MUL_FFT_MODF_THRESHOLD            280
-#define MUL_FFT_THRESHOLD                1664
+#define MUL_FFT_TABLE  { 400, 800, 1600, 2816, 7168, 20480, 81920, 327680, 0 }
+#define MUL_FFT_MODF_THRESHOLD             360
+#define MUL_FFT_THRESHOLD                 4608
 
-#define SQR_FFT_TABLE  { 368, 800, 1728, 3328, 7168, 20480, 81920, 327680, 786432, 0 }
-#define SQR_FFT_MODF_THRESHOLD            248
-#define SQR_FFT_THRESHOLD                1792
+#define SQR_FFT_TABLE  { 368, 800, 1728, 3328, 7168, 20480, 81920, 327680, 0 }


More information about the gmp-commit mailing list