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

mercurial at gmplib.org mercurial at gmplib.org
Tue Dec 22 13:51:54 CET 2009


details:   /home/hgfiles/gmp/rev/b0d76a585d30
changeset: 13184:b0d76a585d30
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Dec 22 13:51:52 2009 +0100
description:
Retune.

diffstat:

 mpn/alpha/ev6/gmp-mparam.h            |   12 +++-
 mpn/powerpc64/mode64/p3/gmp-mparam.h  |   94 ++++++++++++++++--------------
 mpn/sparc64/ultrasparc34/gmp-mparam.h |  104 +++++++++++++++++----------------
 3 files changed, 115 insertions(+), 95 deletions(-)

diffs (274 lines):

diff -r ba64d9803e25 -r b0d76a585d30 mpn/alpha/ev6/gmp-mparam.h
--- a/mpn/alpha/ev6/gmp-mparam.h	Tue Dec 22 13:40:59 2009 +0100
+++ b/mpn/alpha/ev6/gmp-mparam.h	Tue Dec 22 13:51:52 2009 +0100
@@ -31,11 +31,19 @@
 #define MUL_TOOM33_THRESHOLD             73
 #define MUL_TOOM44_THRESHOLD            166
 
+#define MUL_TOOM32_TO_TOOM43_THRESHOLD     69
+#define MUL_TOOM32_TO_TOOM53_THRESHOLD    122
+#define MUL_TOOM42_TO_TOOM53_THRESHOLD    106
+#define MUL_TOOM42_TO_TOOM63_THRESHOLD    120
+
 #define SQR_BASECASE_THRESHOLD            5
 #define SQR_TOOM2_THRESHOLD              60
 #define SQR_TOOM3_THRESHOLD             105
 #define SQR_TOOM4_THRESHOLD             167
 
+#define MULMOD_BNM1_THRESHOLD              17
+#define SQRMOD_BNM1_THRESHOLD              23
+
 #define MUL_FFT_TABLE  { 304, 864, 1728, 3328, 9216, 28672, 147456, 327680, 0 }
 #define MUL_FFT_MODF_THRESHOLD          432
 #define MUL_FFT_THRESHOLD              3968
@@ -48,15 +56,15 @@
 #define MULLO_DC_THRESHOLD              129
 #define MULLO_MUL_N_THRESHOLD          7842
 
-#define MULMOD_BNM1_THRESHOLD            16
-
 #define DC_DIV_QR_THRESHOLD             112
 #define DC_DIVAPPR_Q_THRESHOLD          396
 #define DC_BDIV_QR_THRESHOLD            110
 #define DC_BDIV_Q_THRESHOLD             315
+
 #define INV_MULMOD_BNM1_THRESHOLD        90
 #define INV_NEWTON_THRESHOLD            387
 #define INV_APPR_THRESHOLD               39
+
 #define BINV_NEWTON_THRESHOLD           406
 #define REDC_1_TO_REDC_N_THRESHOLD      110
 
diff -r ba64d9803e25 -r b0d76a585d30 mpn/powerpc64/mode64/p3/gmp-mparam.h
--- a/mpn/powerpc64/mode64/p3/gmp-mparam.h	Tue Dec 22 13:40:59 2009 +0100
+++ b/mpn/powerpc64/mode64/p3/gmp-mparam.h	Tue Dec 22 13:51:52 2009 +0100
@@ -21,58 +21,64 @@
 #define BYTES_PER_MP_LIMB 8
 
 
-/* Generated by tuneup.c, 2009-11-29, gcc 2.9 */
+#define MUL_TOOM22_THRESHOLD               10
+#define MUL_TOOM33_THRESHOLD               33
+#define MUL_TOOM44_THRESHOLD               46
 
-#define MUL_TOOM22_THRESHOLD             10
-#define MUL_TOOM33_THRESHOLD             30
-#define MUL_TOOM44_THRESHOLD             46
+#define MUL_TOOM32_TO_TOOM43_THRESHOLD     49
+#define MUL_TOOM32_TO_TOOM53_THRESHOLD     38
+#define MUL_TOOM42_TO_TOOM53_THRESHOLD     49
+#define MUL_TOOM42_TO_TOOM63_THRESHOLD     32
 
-#define SQR_BASECASE_THRESHOLD            0  /* always */
-#define SQR_TOOM2_THRESHOLD              16
-#define SQR_TOOM3_THRESHOLD              45
-#define SQR_TOOM4_THRESHOLD              64
+#define SQR_BASECASE_THRESHOLD              0  /* always */
+#define SQR_TOOM2_THRESHOLD                16
+#define SQR_TOOM3_THRESHOLD                49
+#define SQR_TOOM4_THRESHOLD                64
 
-#define MUL_FFT_TABLE  { 208, 480, 1088, 1792, 5120, 12288, 49152, 196608, 786432, 0 }
-#define MUL_FFT_MODF_THRESHOLD          224
-#define MUL_FFT_THRESHOLD              1408
+#define MULMOD_BNM1_THRESHOLD               8
+#define SQRMOD_BNM1_THRESHOLD              10
+
+#define MUL_FFT_TABLE  { 208, 416, 1088, 1792, 5120, 12288, 49152, 196608, 786432, 0 }
+#define MUL_FFT_MODF_THRESHOLD            224
+#define MUL_FFT_THRESHOLD                1152
 
 #define SQR_FFT_TABLE  { 208, 416, 960, 1792, 5120, 12288, 49152, 196608, 786432, 0 }
-#define SQR_FFT_MODF_THRESHOLD          184
-#define SQR_FFT_THRESHOLD              1152
+#define SQR_FFT_MODF_THRESHOLD            168
+#define SQR_FFT_THRESHOLD                1152
 
-#define MULLO_BASECASE_THRESHOLD          3
-#define MULLO_DC_THRESHOLD               28
-#define MULLO_MUL_N_THRESHOLD          2350
+#define MULLO_BASECASE_THRESHOLD            3
+#define MULLO_DC_THRESHOLD                 28
+#define MULLO_MUL_N_THRESHOLD            2215
 
-#define MULMOD_BNM1_THRESHOLD             8
+#define DC_DIV_QR_THRESHOLD                27
+#define DC_DIVAPPR_Q_THRESHOLD             94
+#define DC_BDIV_QR_THRESHOLD               28
+#define DC_BDIV_Q_THRESHOLD                62
 
-#define DC_DIV_QR_THRESHOLD              27
-#define DC_DIVAPPR_Q_THRESHOLD           94
-#define DC_BDIV_QR_THRESHOLD             28
-#define DC_BDIV_Q_THRESHOLD              62
-#define INV_MULMOD_BNM1_THRESHOLD        77
-#define INV_NEWTON_THRESHOLD            117
-#define INV_APPR_THRESHOLD               17
-#define BINV_NEWTON_THRESHOLD           133
-#define REDC_1_TO_REDC_N_THRESHOLD       31
+#define INV_MULMOD_BNM1_THRESHOLD          76
+#define INV_NEWTON_THRESHOLD              116
+#define INV_APPR_THRESHOLD                 19
 
-#define MATRIX22_STRASSEN_THRESHOLD       8
-#define HGCD_THRESHOLD                   58
-#define GCD_DC_THRESHOLD                159
-#define GCDEXT_DC_THRESHOLD             126
-#define JACOBI_BASE_METHOD                1
+#define BINV_NEWTON_THRESHOLD             132
+#define REDC_1_TO_REDC_N_THRESHOLD         31
 
-#define MOD_1_NORM_THRESHOLD              0  /* always */
-#define MOD_1_UNNORM_THRESHOLD            0  /* always */
-#define MOD_1_1_THRESHOLD                 6
-#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               0
-#define USE_PREINV_MOD_1                  1
-#define DIVEXACT_1_THRESHOLD              0  /* always (native) */
-#define MODEXACT_1_ODD_THRESHOLD          0  /* always */
+#define MATRIX22_STRASSEN_THRESHOLD         8
+#define HGCD_THRESHOLD                     54
+#define GCD_DC_THRESHOLD                  146
+#define GCDEXT_DC_THRESHOLD               126
+#define JACOBI_BASE_METHOD                  1
 
-#define GET_STR_DC_THRESHOLD             15
-#define GET_STR_PRECOMPUTE_THRESHOLD     29
-#define SET_STR_DC_THRESHOLD            357
-#define SET_STR_PRECOMPUTE_THRESHOLD    803
+#define MOD_1_NORM_THRESHOLD                0  /* always */
+#define MOD_1_UNNORM_THRESHOLD              0  /* always */
+#define MOD_1_1_THRESHOLD                   4
+#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
+#define USE_PREINV_MOD_1                    1
+#define DIVEXACT_1_THRESHOLD                0  /* always (native) */
+#define MODEXACT_1_ODD_THRESHOLD            0  /* always */
+
+#define GET_STR_DC_THRESHOLD               17
+#define GET_STR_PRECOMPUTE_THRESHOLD       27
+#define SET_STR_DC_THRESHOLD              375
+#define SET_STR_PRECOMPUTE_THRESHOLD      812
diff -r ba64d9803e25 -r b0d76a585d30 mpn/sparc64/ultrasparc34/gmp-mparam.h
--- a/mpn/sparc64/ultrasparc34/gmp-mparam.h	Tue Dec 22 13:40:59 2009 +0100
+++ b/mpn/sparc64/ultrasparc34/gmp-mparam.h	Tue Dec 22 13:51:52 2009 +0100
@@ -23,62 +23,68 @@
 
 /* 1593 MHz ultrasparc3 running Solaris 10 (swift.nada.kth.se) */
 
-/* Generated by tuneup.c, 2009-12-11, gcc 3.4 */
+#define MUL_TOOM22_THRESHOLD               30
+#define MUL_TOOM33_THRESHOLD               87
+#define MUL_TOOM44_THRESHOLD              139
 
-#define MUL_TOOM22_THRESHOLD             30
-#define MUL_TOOM33_THRESHOLD             93
-#define MUL_TOOM44_THRESHOLD            127
+#define MUL_TOOM32_TO_TOOM43_THRESHOLD     93
+#define MUL_TOOM32_TO_TOOM53_THRESHOLD    106
+#define MUL_TOOM42_TO_TOOM53_THRESHOLD     85
+#define MUL_TOOM42_TO_TOOM63_THRESHOLD     84
 
-#define SQR_BASECASE_THRESHOLD           10
-#define SQR_TOOM2_THRESHOLD              71
-#define SQR_TOOM3_THRESHOLD              97
-#define SQR_TOOM4_THRESHOLD             178
+#define SQR_BASECASE_THRESHOLD              9
+#define SQR_TOOM2_THRESHOLD                71
+#define SQR_TOOM3_THRESHOLD               100
+#define SQR_TOOM4_THRESHOLD               176
 
-#define MUL_FFT_TABLE  { 240, 480, 1344, 2304, 5120, 12288, 81920, 327680, 786432, 0 }
-#define MUL_FFT_MODF_THRESHOLD          256
-#define MUL_FFT_THRESHOLD              1664
+#define MULMOD_BNM1_THRESHOLD              13
+#define SQRMOD_BNM1_THRESHOLD               9
 
-#define SQR_FFT_TABLE  { 304, 608, 1344, 2304, 7168, 20480, 81920, 327680, 786432, 0 }
-#define SQR_FFT_MODF_THRESHOLD          216
-#define SQR_FFT_THRESHOLD              1408
+#define MUL_FFT_TABLE  { 240, 480, 1344, 2304, 5120, 20480, 81920, 327680, 786432, 0 }
+#define MUL_FFT_MODF_THRESHOLD            216
+#define MUL_FFT_THRESHOLD                1664
 
-#define MULLO_BASECASE_THRESHOLD         15
-#define MULLO_DC_THRESHOLD                0  /* never mpn_mullo_basecase */
-#define MULLO_MUL_N_THRESHOLD          2350
+#define SQR_FFT_TABLE  { 304, 608, 1344, 2304, 7168, 12288, 81920, 327680, 786432, 0 }
+#define SQR_FFT_MODF_THRESHOLD            216
+#define SQR_FFT_THRESHOLD                1408
 
-#define MULMOD_BNM1_THRESHOLD            13
+#define MULLO_BASECASE_THRESHOLD           19
+#define MULLO_DC_THRESHOLD                  0  /* never mpn_mullo_basecase */
+#define MULLO_MUL_N_THRESHOLD            2694
 
-#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 INV_MULMOD_BNM1_THRESHOLD       100
-#define INV_NEWTON_THRESHOLD             17
-#define INV_APPR_THRESHOLD                5
-#define BINV_NEWTON_THRESHOLD           123
-#define REDC_1_TO_REDC_2_THRESHOLD       10
-#define REDC_2_TO_REDC_N_THRESHOLD      117
+#define DC_DIV_QR_THRESHOLD                16
+#define DC_DIVAPPR_Q_THRESHOLD             66
+#define DC_BDIV_QR_THRESHOLD               29
+#define DC_BDIV_Q_THRESHOLD               106
 
-#define MATRIX22_STRASSEN_THRESHOLD      12
-#define HGCD_THRESHOLD                   44
-#define GCD_DC_THRESHOLD                120
-#define GCDEXT_DC_THRESHOLD             132
-#define JACOBI_BASE_METHOD                2
+#define INV_MULMOD_BNM1_THRESHOLD          58
+#define INV_NEWTON_THRESHOLD               17
+#define INV_APPR_THRESHOLD                  7
 
-#define DIVREM_1_NORM_THRESHOLD           0  /* 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             MP_SIZE_T_MAX  /* never */
-#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
-#define USE_PREINV_MOD_1                  1
-#define DIVREM_2_THRESHOLD                0  /* always */
-#define DIVEXACT_1_THRESHOLD              0  /* always */
-#define MODEXACT_1_ODD_THRESHOLD          0  /* always */
+#define BINV_NEWTON_THRESHOLD             125
+#define REDC_1_TO_REDC_2_THRESHOLD         10
+#define REDC_2_TO_REDC_N_THRESHOLD        116
 
-#define GET_STR_DC_THRESHOLD             18
-#define GET_STR_PRECOMPUTE_THRESHOLD     27
-#define SET_STR_DC_THRESHOLD            292
-#define SET_STR_PRECOMPUTE_THRESHOLD   1033
+#define MATRIX22_STRASSEN_THRESHOLD        12
+#define HGCD_THRESHOLD                     47
+#define GCD_DC_THRESHOLD                  128
+#define GCDEXT_DC_THRESHOLD               138
+#define JACOBI_BASE_METHOD                  3
+
+#define DIVREM_1_NORM_THRESHOLD             0  /* 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               MP_SIZE_T_MAX  /* never */
+#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
+#define USE_PREINV_MOD_1                    1
+#define DIVREM_2_THRESHOLD                  0  /* always */
+#define DIVEXACT_1_THRESHOLD                0  /* always */
+#define MODEXACT_1_ODD_THRESHOLD            0  /* always */
+
+#define GET_STR_DC_THRESHOLD               18
+#define GET_STR_PRECOMPUTE_THRESHOLD       27
+#define SET_STR_DC_THRESHOLD              286
+#define SET_STR_PRECOMPUTE_THRESHOLD     1045


More information about the gmp-commit mailing list