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

mercurial at gmplib.org mercurial at gmplib.org
Sun Dec 27 02:12:53 CET 2009


details:   /home/hgfiles/gmp/rev/4f2dda755418
changeset: 13232:4f2dda755418
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Dec 27 02:12:48 2009 +0100
description:
Retune.

diffstat:

 mpn/ia64/gmp-mparam.h                |  103 ++++++++++++++++++--------------
 mpn/pa32/hppa2_0/gmp-mparam.h        |  107 ++++++++++++++++++--------------
 mpn/powerpc32/750/gmp-mparam.h       |  103 +++++++++++++++++---------------
 mpn/powerpc32/gmp-mparam.h           |  109 +++++++++++++++++----------------
 mpn/powerpc64/mode64/p3/gmp-mparam.h |   91 +++++++++++++++-------------
 mpn/powerpc64/mode64/p4/gmp-mparam.h |   99 ++++++++++++++++--------------
 mpn/powerpc64/mode64/p5/gmp-mparam.h |   99 ++++++++++++++++--------------
 mpn/sparc64/gmp-mparam.h             |  111 ++++++++++++++++++----------------
 mpn/x86/k6/gmp-mparam.h              |   90 +++++++++++++++++----------
 mpn/x86/k7/gmp-mparam.h              |  103 +++++++++++++++++---------------
 mpn/x86/p6/mmx/gmp-mparam.h          |  103 +++++++++++++++++---------------
 mpn/x86/p6/sse2/gmp-mparam.h         |  103 +++++++++++++++++---------------
 mpn/x86/pentium4/sse2/gmp-mparam.h   |  103 +++++++++++++++++---------------
 mpn/x86_64/atom/gmp-mparam.h         |  101 ++++++++++++++++---------------
 mpn/x86_64/core2/gmp-mparam.h        |  101 ++++++++++++++++---------------
 mpn/x86_64/corei/gmp-mparam.h        |  105 ++++++++++++++++----------------
 mpn/x86_64/gmp-mparam.h              |   93 +++++++++++++++-------------
 mpn/x86_64/pentium4/gmp-mparam.h     |  105 +++++++++++++++++---------------
 18 files changed, 975 insertions(+), 854 deletions(-)

diffs (truncated from 2198 to 300 lines):

diff -r b3a07d48af77 -r 4f2dda755418 mpn/ia64/gmp-mparam.h
--- a/mpn/ia64/gmp-mparam.h	Sun Dec 27 00:30:10 2009 +0100
+++ b/mpn/ia64/gmp-mparam.h	Sun Dec 27 02:12:48 2009 +0100
@@ -25,57 +25,70 @@
 
 /* Generated by tuneup.c, 2009-11-29, gcc 4.2 */
 
-#define MUL_TOOM22_THRESHOLD             44
-#define MUL_TOOM33_THRESHOLD             89
-#define MUL_TOOM44_THRESHOLD            232
+#define MUL_TOOM22_THRESHOLD                44
+#define MUL_TOOM33_THRESHOLD                89
+#define MUL_TOOM44_THRESHOLD               232
+#define MUL_TOOM6H_THRESHOLD               351
+#define MUL_TOOM8H_THRESHOLD               454
 
-#define SQR_BASECASE_THRESHOLD           26
-#define SQR_TOOM2_THRESHOLD             119
-#define SQR_TOOM3_THRESHOLD             141
-#define SQR_TOOM4_THRESHOLD             284
+#define MUL_TOOM32_TO_TOOM43_THRESHOLD     101
+#define MUL_TOOM32_TO_TOOM53_THRESHOLD     160
+#define MUL_TOOM42_TO_TOOM53_THRESHOLD     138
+#define MUL_TOOM42_TO_TOOM63_THRESHOLD     159
 
-#define MUL_FFT_TABLE  { 528, 1120, 1856, 3840, 11264, 28672, 114688, 327680, 0 }
-#define MUL_FFT_MODF_THRESHOLD          624
-#define MUL_FFT_THRESHOLD              7680
+#define SQR_BASECASE_THRESHOLD              26
+#define SQR_TOOM2_THRESHOLD                119
+#define SQR_TOOM3_THRESHOLD                141
+#define SQR_TOOM4_THRESHOLD                282
+#define SQR_TOOM6_THRESHOLD                375
+#define SQR_TOOM8_THRESHOLD                527
 
-#define SQR_FFT_TABLE  { 592, 1248, 2368, 3840, 11264, 28672, 81920, 327680, 0 }
-#define SQR_FFT_MODF_THRESHOLD          608
-#define SQR_FFT_THRESHOLD              4992
+#define MULMOD_BNM1_THRESHOLD               24
+#define SQRMOD_BNM1_THRESHOLD               19
 
-#define MULLO_BASECASE_THRESHOLD         17
-#define MULLO_DC_THRESHOLD               88
-#define MULLO_MUL_N_THRESHOLD         15280
+#define MUL_FFT_TABLE  { 560, 1184, 1856, 3840, 11264, 28672, 114688, 327680, 0 }
+#define MUL_FFT_MODF_THRESHOLD             944
+#define MUL_FFT_THRESHOLD                26624
 
-#define MULMOD_BNM1_THRESHOLD            25
+#define SQR_FFT_TABLE  { 592, 1248, 1856, 3840, 11264, 28672, 81920, 327680, 0 }
+#define SQR_FFT_MODF_THRESHOLD             752
+#define SQR_FFT_THRESHOLD                18432
 
-#define DC_DIV_QR_THRESHOLD              67
-#define DC_DIVAPPR_Q_THRESHOLD          268
-#define DC_BDIV_QR_THRESHOLD            108
-#define DC_BDIV_Q_THRESHOLD             292
-#define INV_MULMOD_BNM1_THRESHOLD       163
-#define INV_NEWTON_THRESHOLD            188
-#define INV_APPR_THRESHOLD                9
-#define BINV_NEWTON_THRESHOLD           300
-#define REDC_1_TO_REDC_2_THRESHOLD       10
-#define REDC_2_TO_REDC_N_THRESHOLD      164
+#define MULLO_BASECASE_THRESHOLD            17
+#define MULLO_DC_THRESHOLD                  84
+#define MULLO_MUL_N_THRESHOLD            27116
 
-#define MATRIX22_STRASSEN_THRESHOLD      23
-#define HGCD_THRESHOLD                  120
-#define GCD_DC_THRESHOLD                630
-#define GCDEXT_DC_THRESHOLD             440
-#define JACOBI_BASE_METHOD                2
+#define DC_DIV_QR_THRESHOLD                 68
+#define DC_DIVAPPR_Q_THRESHOLD             252
+#define DC_BDIV_QR_THRESHOLD               107
+#define DC_BDIV_Q_THRESHOLD                292
 
-#define MOD_1_NORM_THRESHOLD              0  /* always */
-#define MOD_1_UNNORM_THRESHOLD            0  /* always */
-#define MOD_1_1_THRESHOLD                 9
-#define MOD_1_2_THRESHOLD                10
-#define MOD_1_4_THRESHOLD                16
-#define USE_PREINV_DIVREM_1               1  /* native */
-#define USE_PREINV_MOD_1                  1  /* preinv always */
-#define DIVEXACT_1_THRESHOLD              0  /* always (native) */
-#define MODEXACT_1_ODD_THRESHOLD          0  /* always */
+#define INV_MULMOD_BNM1_THRESHOLD          123
+#define INV_NEWTON_THRESHOLD                15
+#define INV_APPR_THRESHOLD                  15
 
-#define GET_STR_DC_THRESHOLD             15
-#define GET_STR_PRECOMPUTE_THRESHOLD     21
-#define SET_STR_DC_THRESHOLD           1339
-#define SET_STR_PRECOMPUTE_THRESHOLD   3565
+#define BINV_NEWTON_THRESHOLD              296
+#define REDC_1_TO_REDC_2_THRESHOLD          10
+#define REDC_2_TO_REDC_N_THRESHOLD         164
+
+#define MATRIX22_STRASSEN_THRESHOLD         23
+#define HGCD_THRESHOLD                     120
+#define GCD_DC_THRESHOLD                   630
+#define GCDEXT_DC_THRESHOLD                440
+#define JACOBI_BASE_METHOD                   2
+
+#define MOD_1_NORM_THRESHOLD                 0  /* always */
+#define MOD_1_UNNORM_THRESHOLD               0  /* always */
+#define MOD_1N_TO_MOD_1_1_THRESHOLD         15
+#define MOD_1U_TO_MOD_1_1_THRESHOLD          0  /* always */
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         8
+#define MOD_1_2_TO_MOD_1_4_THRESHOLD        14
+#define PREINV_MOD_1_TO_MOD_1_THRESHOLD     23
+#define USE_PREINV_DIVREM_1                  1  /* native */
+#define DIVEXACT_1_THRESHOLD                 0  /* always (native) */
+#define BMOD_1_TO_MOD_1_THRESHOLD        MP_SIZE_T_MAX  /* never */
+
+#define GET_STR_DC_THRESHOLD                14
+#define GET_STR_PRECOMPUTE_THRESHOLD        21
+#define SET_STR_DC_THRESHOLD              1240
+#define SET_STR_PRECOMPUTE_THRESHOLD      3566
diff -r b3a07d48af77 -r 4f2dda755418 mpn/pa32/hppa2_0/gmp-mparam.h
--- a/mpn/pa32/hppa2_0/gmp-mparam.h	Sun Dec 27 00:30:10 2009 +0100
+++ b/mpn/pa32/hppa2_0/gmp-mparam.h	Sun Dec 27 02:12:48 2009 +0100
@@ -25,59 +25,72 @@
 
 /* Generated by tuneup.c, 2009-11-29, gcc 4.2 */
 
-#define MUL_TOOM22_THRESHOLD             22
-#define MUL_TOOM33_THRESHOLD            104
-#define MUL_TOOM44_THRESHOLD            158
+#define MUL_TOOM22_THRESHOLD                15
+#define MUL_TOOM33_THRESHOLD                91
+#define MUL_TOOM44_THRESHOLD               154
+#define MUL_TOOM6H_THRESHOLD               204
+#define MUL_TOOM8H_THRESHOLD               482
 
-#define SQR_BASECASE_THRESHOLD            6
-#define SQR_TOOM2_THRESHOLD              51
-#define SQR_TOOM3_THRESHOLD              89
-#define SQR_TOOM4_THRESHOLD             250
+#define MUL_TOOM32_TO_TOOM43_THRESHOLD      97
+#define MUL_TOOM32_TO_TOOM53_THRESHOLD     103
+#define MUL_TOOM42_TO_TOOM53_THRESHOLD     109
+#define MUL_TOOM42_TO_TOOM63_THRESHOLD     103
 
-#define MUL_FFT_TABLE  { 304, 672, 1152, 2560, 6144, 24576, 98304, 393216, 0 }
-#define MUL_FFT_MODF_THRESHOLD          232
-#define MUL_FFT_THRESHOLD              1792
+#define SQR_BASECASE_THRESHOLD               6
+#define SQR_TOOM2_THRESHOLD                 47
+#define SQR_TOOM3_THRESHOLD                 93
+#define SQR_TOOM4_THRESHOLD                250
+#define SQR_TOOM6_THRESHOLD                278
+#define SQR_TOOM8_THRESHOLD                502
 
-#define SQR_FFT_TABLE  { 304, 672, 1152, 2560, 6144, 24576, 98304, 393216, 0 }
-#define SQR_FFT_MODF_THRESHOLD          232
-#define SQR_FFT_THRESHOLD              1792
+#define MULMOD_BNM1_THRESHOLD               13
+#define SQRMOD_BNM1_THRESHOLD               15
 
-#define MULLO_BASECASE_THRESHOLD          0  /* always */
-#define MULLO_DC_THRESHOLD               90
-#define MULLO_MUL_N_THRESHOLD          2350
+#define MUL_FFT_TABLE  { 304, 672, 896, 2560, 10240, 24576, 98304, 0 }
+#define MUL_FFT_MODF_THRESHOLD             296
+#define MUL_FFT_THRESHOLD                 2816
 
-#define MULMOD_BNM1_THRESHOLD            16
+#define SQR_FFT_TABLE  { 304, 672, 1152, 2560, 6144, 24576, 98304, 0 }
+#define SQR_FFT_MODF_THRESHOLD             232
+#define SQR_FFT_THRESHOLD                 2304
 
-#define DC_DIV_QR_THRESHOLD             100
-#define DC_DIVAPPR_Q_THRESHOLD          348
-#define DC_BDIV_QR_THRESHOLD            119
-#define DC_BDIV_Q_THRESHOLD             248
-#define INV_MULMOD_BNM1_THRESHOLD        42
-#define INV_NEWTON_THRESHOLD            296
-#define INV_APPR_THRESHOLD               16
-#define BINV_NEWTON_THRESHOLD           330
-#define REDC_1_TO_REDC_N_THRESHOLD       78
+#define MULLO_BASECASE_THRESHOLD             0  /* always */
+#define MULLO_DC_THRESHOLD                  90
+#define MULLO_MUL_N_THRESHOLD             3215
 
-#define MATRIX22_STRASSEN_THRESHOLD      11
-#define HGCD_THRESHOLD                  101
-#define GCD_DC_THRESHOLD                368
-#define GCDEXT_DC_THRESHOLD             330
-#define JACOBI_BASE_METHOD                2
+#define DC_DIV_QR_THRESHOLD                100
+#define DC_DIVAPPR_Q_THRESHOLD             342
+#define DC_BDIV_QR_THRESHOLD               119
+#define DC_BDIV_Q_THRESHOLD                246
 
-#define DIVREM_1_NORM_THRESHOLD           0  /* always */
-#define DIVREM_1_UNNORM_THRESHOLD         4
-#define MOD_1_NORM_THRESHOLD              4
-#define MOD_1_UNNORM_THRESHOLD            4
-#define MOD_1_1_THRESHOLD                12
-#define MOD_1_2_THRESHOLD                13
-#define MOD_1_4_THRESHOLD                18
-#define USE_PREINV_DIVREM_1               1
-#define USE_PREINV_MOD_1                  0
-#define DIVREM_2_THRESHOLD                0  /* always */
-#define DIVEXACT_1_THRESHOLD              0  /* always */
-#define MODEXACT_1_ODD_THRESHOLD      MP_SIZE_T_MAX  /* never */
+#define INV_MULMOD_BNM1_THRESHOLD           12
+#define INV_NEWTON_THRESHOLD               274
+#define INV_APPR_THRESHOLD                 268
 
-#define GET_STR_DC_THRESHOLD              7
-#define GET_STR_PRECOMPUTE_THRESHOLD     14
-#define SET_STR_DC_THRESHOLD            224
-#define SET_STR_PRECOMPUTE_THRESHOLD    702
+#define BINV_NEWTON_THRESHOLD              327
+#define REDC_1_TO_REDC_N_THRESHOLD          70
+
+#define MATRIX22_STRASSEN_THRESHOLD         15
+#define HGCD_THRESHOLD                      99
+#define GCD_DC_THRESHOLD                   372
+#define GCDEXT_DC_THRESHOLD                241
+#define JACOBI_BASE_METHOD                   2
+
+#define DIVREM_1_NORM_THRESHOLD              0  /* always */
+#define DIVREM_1_UNNORM_THRESHOLD            3
+#define MOD_1_NORM_THRESHOLD                 3
+#define MOD_1_UNNORM_THRESHOLD               4
+#define MOD_1N_TO_MOD_1_1_THRESHOLD         15
+#define MOD_1U_TO_MOD_1_1_THRESHOLD          0  /* always */
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         8
+#define MOD_1_2_TO_MOD_1_4_THRESHOLD        18
+#define PREINV_MOD_1_TO_MOD_1_THRESHOLD     21
+#define USE_PREINV_DIVREM_1                  1
+#define DIVREM_2_THRESHOLD                   0  /* always */
+#define DIVEXACT_1_THRESHOLD                 0  /* always */
+#define BMOD_1_TO_MOD_1_THRESHOLD           31
+
+#define GET_STR_DC_THRESHOLD                 7
+#define GET_STR_PRECOMPUTE_THRESHOLD        14
+#define SET_STR_DC_THRESHOLD               224
+#define SET_STR_PRECOMPUTE_THRESHOLD       788
diff -r b3a07d48af77 -r 4f2dda755418 mpn/powerpc32/750/gmp-mparam.h
--- a/mpn/powerpc32/750/gmp-mparam.h	Sun Dec 27 00:30:10 2009 +0100
+++ b/mpn/powerpc32/750/gmp-mparam.h	Sun Dec 27 02:12:48 2009 +0100
@@ -26,66 +26,71 @@
 
 /* 450 MHz PPC 7400 */
 
-#define MUL_TOOM22_THRESHOLD               10
-#define MUL_TOOM33_THRESHOLD               38
-#define MUL_TOOM44_THRESHOLD              100
+#define MUL_TOOM22_THRESHOLD                10
+#define MUL_TOOM33_THRESHOLD                38
+#define MUL_TOOM44_THRESHOLD                99
+#define MUL_TOOM6H_THRESHOLD               142
+#define MUL_TOOM8H_THRESHOLD               212
 
-#define MUL_TOOM32_TO_TOOM43_THRESHOLD     65
-#define MUL_TOOM32_TO_TOOM53_THRESHOLD     69
-#define MUL_TOOM42_TO_TOOM53_THRESHOLD     65
-#define MUL_TOOM42_TO_TOOM63_THRESHOLD     66
+#define MUL_TOOM32_TO_TOOM43_THRESHOLD      65
+#define MUL_TOOM32_TO_TOOM53_THRESHOLD      69
+#define MUL_TOOM42_TO_TOOM53_THRESHOLD      65
+#define MUL_TOOM42_TO_TOOM63_THRESHOLD      66
 
-#define SQR_BASECASE_THRESHOLD              4
-#define SQR_TOOM2_THRESHOLD                18
-#define SQR_TOOM3_THRESHOLD                57
-#define SQR_TOOM4_THRESHOLD                88
+#define SQR_BASECASE_THRESHOLD               4
+#define SQR_TOOM2_THRESHOLD                 18
+#define SQR_TOOM3_THRESHOLD                 57
+#define SQR_TOOM4_THRESHOLD                147
+#define SQR_TOOM6_THRESHOLD                189
+#define SQR_TOOM8_THRESHOLD                309
 
-#define MULMOD_BNM1_THRESHOLD               9
-#define SQRMOD_BNM1_THRESHOLD              12
+#define MULMOD_BNM1_THRESHOLD                9
+#define SQRMOD_BNM1_THRESHOLD               11
 
 #define MUL_FFT_TABLE  { 240, 672, 896, 2560, 6144, 40960, 98304, 393216, 0 }
-#define MUL_FFT_MODF_THRESHOLD            232
-#define MUL_FFT_THRESHOLD                2816
+#define MUL_FFT_MODF_THRESHOLD             256
+#define MUL_FFT_THRESHOLD                 9216
 
 #define SQR_FFT_TABLE  { 240, 544, 896, 2560, 6144, 24576, 98304, 393216, 0 }
-#define SQR_FFT_MODF_THRESHOLD            216
-#define SQR_FFT_THRESHOLD                2304
+#define SQR_FFT_MODF_THRESHOLD             256
+#define SQR_FFT_THRESHOLD                 7168
 
-#define MULLO_BASECASE_THRESHOLD            0  /* always */
-#define MULLO_DC_THRESHOLD                 34
-#define MULLO_MUL_N_THRESHOLD            2972
+#define MULLO_BASECASE_THRESHOLD             0  /* always */
+#define MULLO_DC_THRESHOLD                  34


More information about the gmp-commit mailing list