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

mercurial at gmplib.org mercurial at gmplib.org
Sun Nov 29 20:26:48 CET 2009


details:   /home/hgfiles/gmp/rev/d5f461351642
changeset: 12941:d5f461351642
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Nov 29 20:26:42 2009 +0100
description:
Retune.

diffstat:

 mpn/powerpc64/mode64/p3/gmp-mparam.h |  32 ++++++++--------
 mpn/powerpc64/mode64/p4/gmp-mparam.h |  44 ++++++++++-----------
 mpn/powerpc64/mode64/p5/gmp-mparam.h |  46 +++++++++++-----------
 mpn/x86/p6/gmp-mparam.h              |   8 ++--
 mpn/x86/p6/mmx/gmp-mparam.h          |  70 +++++++++++++++++++----------------
 mpn/x86/p6/sse2/gmp-mparam.h         |   6 +-
 mpn/x86_64/pentium4/gmp-mparam.h     |  46 +++++++++++-----------
 7 files changed, 128 insertions(+), 124 deletions(-)

diffs (truncated from 435 to 300 lines):

diff -r 4806080fb07e -r d5f461351642 mpn/powerpc64/mode64/p3/gmp-mparam.h
--- a/mpn/powerpc64/mode64/p3/gmp-mparam.h	Sun Nov 29 19:29:11 2009 +0100
+++ b/mpn/powerpc64/mode64/p3/gmp-mparam.h	Sun Nov 29 20:26:42 2009 +0100
@@ -21,7 +21,7 @@
 #define BYTES_PER_MP_LIMB 8
 
 
-/* Generated by tuneup.c, 2009-11-27, gcc 2.9 */
+/* Generated by tuneup.c, 2009-11-29, gcc 2.9 */
 
 #define MUL_TOOM22_THRESHOLD             10
 #define MUL_TOOM33_THRESHOLD             30
@@ -32,32 +32,32 @@
 #define SQR_TOOM3_THRESHOLD              45
 #define SQR_TOOM4_THRESHOLD              64
 
-#define MUL_FFT_TABLE  { 208, 416, 1088, 1792, 5120, 12288, 49152, 196608, 786432, 0 }
-#define MUL_FFT_MODF_THRESHOLD          240
-#define MUL_FFT_THRESHOLD              1664
+#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 SQR_FFT_TABLE  { 208, 416, 960, 1792, 5120, 12288, 49152, 196608, 786432, 0 }
 #define SQR_FFT_MODF_THRESHOLD          184
-#define SQR_FFT_THRESHOLD              1664
+#define SQR_FFT_THRESHOLD              1152
 
-#define MULLOW_BASECASE_THRESHOLD         2
-#define MULLOW_DC_THRESHOLD              27
+#define MULLOW_BASECASE_THRESHOLD         3
+#define MULLOW_DC_THRESHOLD              28
 #define MULLOW_MUL_N_THRESHOLD         2350
 
 #define MULMOD_BNM1_THRESHOLD             8
 
-#define DC_DIV_QR_THRESHOLD              27
-#define REDC_1_TO_REDC_N_THRESHOLD       48
+#define DC_DIV_QR_THRESHOLD              28
+#define REDC_1_TO_REDC_N_THRESHOLD       39
 
 #define MATRIX22_STRASSEN_THRESHOLD       8
-#define HGCD_THRESHOLD                   54
-#define GCD_DC_THRESHOLD                159
-#define GCDEXT_DC_THRESHOLD             150
-#define JACOBI_BASE_METHOD                2
+#define HGCD_THRESHOLD                   53
+#define GCD_DC_THRESHOLD                148
+#define GCDEXT_DC_THRESHOLD             153
+#define JACOBI_BASE_METHOD                1
 
 #define MOD_1_NORM_THRESHOLD              0  /* always */
 #define MOD_1_UNNORM_THRESHOLD            0  /* always */
-#define MOD_1_1_THRESHOLD                 5
+#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
@@ -67,5 +67,5 @@
 
 #define GET_STR_DC_THRESHOLD             15
 #define GET_STR_PRECOMPUTE_THRESHOLD     29
-#define SET_STR_DC_THRESHOLD            375
-#define SET_STR_PRECOMPUTE_THRESHOLD    812
+#define SET_STR_DC_THRESHOLD            357
+#define SET_STR_PRECOMPUTE_THRESHOLD    803
diff -r 4806080fb07e -r d5f461351642 mpn/powerpc64/mode64/p4/gmp-mparam.h
--- a/mpn/powerpc64/mode64/p4/gmp-mparam.h	Sun Nov 29 19:29:11 2009 +0100
+++ b/mpn/powerpc64/mode64/p4/gmp-mparam.h	Sun Nov 29 20:26:42 2009 +0100
@@ -21,43 +21,43 @@
 #define BYTES_PER_MP_LIMB 8
 
 
-/* Generated by tuneup.c, 2009-11-27, gcc 4.0 */
+/* Generated by tuneup.c, 2009-11-29, gcc 4.0 */
 
 #define MUL_TOOM22_THRESHOLD             16
-#define MUL_TOOM33_THRESHOLD             62
-#define MUL_TOOM44_THRESHOLD            136
+#define MUL_TOOM33_THRESHOLD             61
+#define MUL_TOOM44_THRESHOLD            154
 
-#define SQR_BASECASE_THRESHOLD            8
-#define SQR_TOOM2_THRESHOLD              32
+#define SQR_BASECASE_THRESHOLD           10
+#define SQR_TOOM2_THRESHOLD              36
 #define SQR_TOOM3_THRESHOLD              65
-#define SQR_TOOM4_THRESHOLD             145
+#define SQR_TOOM4_THRESHOLD             154
 
 #define MUL_FFT_TABLE  { 336, 800, 1728, 2816, 7168, 20480, 81920, 327680, 0 }
-#define MUL_FFT_MODF_THRESHOLD          336
-#define MUL_FFT_THRESHOLD              5248
+#define MUL_FFT_MODF_THRESHOLD          352
+#define MUL_FFT_THRESHOLD              4608
 
-#define SQR_FFT_TABLE  { 272, 672, 1600, 2816, 7168, 20480, 81920, 327680, 786432, 0 }
-#define SQR_FFT_MODF_THRESHOLD          272
+#define SQR_FFT_TABLE  { 272, 672, 1472, 2816, 7168, 20480, 81920, 327680, 786432, 0 }
+#define SQR_FFT_MODF_THRESHOLD          264
 #define SQR_FFT_THRESHOLD              2944
 
-#define MULLOW_BASECASE_THRESHOLD         5
-#define MULLOW_DC_THRESHOLD              35
-#define MULLOW_MUL_N_THRESHOLD        10292
+#define MULLOW_BASECASE_THRESHOLD         3
+#define MULLOW_DC_THRESHOLD              34
+#define MULLOW_MUL_N_THRESHOLD         9142
 
 #define MULMOD_BNM1_THRESHOLD            12
 
-#define DC_DIV_QR_THRESHOLD              29
-#define REDC_1_TO_REDC_N_THRESHOLD       96
+#define DC_DIV_QR_THRESHOLD              25
+#define REDC_1_TO_REDC_N_THRESHOLD       60
 
-#define MATRIX22_STRASSEN_THRESHOLD      11
+#define MATRIX22_STRASSEN_THRESHOLD      14
 #define HGCD_THRESHOLD                   93
-#define GCD_DC_THRESHOLD                241
+#define GCD_DC_THRESHOLD                221
 #define GCDEXT_DC_THRESHOLD             273
 #define JACOBI_BASE_METHOD                1
 
 #define MOD_1_NORM_THRESHOLD              0  /* always */
 #define MOD_1_UNNORM_THRESHOLD            0  /* always */
-#define MOD_1_1_THRESHOLD                 6
+#define MOD_1_1_THRESHOLD                 7
 #define MOD_1_2_THRESHOLD                 9
 #define MOD_1_4_THRESHOLD                23
 #define USE_PREINV_DIVREM_1               0
@@ -65,9 +65,7 @@
 #define DIVEXACT_1_THRESHOLD              0  /* always (native) */
 #define MODEXACT_1_ODD_THRESHOLD      MP_SIZE_T_MAX  /* never */
 
-#define GET_STR_DC_THRESHOLD             12
+#define GET_STR_DC_THRESHOLD             10
 #define GET_STR_PRECOMPUTE_THRESHOLD     23
-#define SET_STR_DC_THRESHOLD            650
-#define SET_STR_PRECOMPUTE_THRESHOLD   1781
-
-/* Tuneup completed successfully, took 176 seconds */
+#define SET_STR_DC_THRESHOLD            532
+#define SET_STR_PRECOMPUTE_THRESHOLD   1755
diff -r 4806080fb07e -r d5f461351642 mpn/powerpc64/mode64/p5/gmp-mparam.h
--- a/mpn/powerpc64/mode64/p5/gmp-mparam.h	Sun Nov 29 19:29:11 2009 +0100
+++ b/mpn/powerpc64/mode64/p5/gmp-mparam.h	Sun Nov 29 20:26:42 2009 +0100
@@ -23,51 +23,51 @@
 
 /* POWER5 (friggms.hpc.ntnu.no) */
 
-/* Generated by tuneup.c, 2009-11-26, gcc 4.4 */
+/* Generated by tuneup.c, 2009-11-29, gcc 4.4 */
 
 #define MUL_TOOM22_THRESHOLD             16
 #define MUL_TOOM33_THRESHOLD             65
-#define MUL_TOOM44_THRESHOLD            147
+#define MUL_TOOM44_THRESHOLD            145
 
 #define SQR_BASECASE_THRESHOLD           10
-#define SQR_TOOM2_THRESHOLD              42
-#define SQR_TOOM3_THRESHOLD              65
-#define SQR_TOOM4_THRESHOLD             115
+#define SQR_TOOM2_THRESHOLD              38
+#define SQR_TOOM3_THRESHOLD              63
+#define SQR_TOOM4_THRESHOLD             103
 
-#define MUL_FFT_TABLE  { 336, 800, 1728, 2816, 7168, 20480, 49152, 196608, 786432, 0 }
-#define MUL_FFT_MODF_THRESHOLD          336
+#define MUL_FFT_TABLE  { 336, 736, 1600, 2816, 7168, 20480, 49152, 196608, 786432, 0 }
+#define MUL_FFT_MODF_THRESHOLD          328
 #define MUL_FFT_THRESHOLD              2432
 
-#define SQR_FFT_TABLE  { 304, 608, 1600, 2816, 7168, 20480, 49152, 196608, 786432, 0 }
-#define SQR_FFT_MODF_THRESHOLD          272
-#define SQR_FFT_THRESHOLD              1920
+#define SQR_FFT_TABLE  { 304, 608, 1344, 2816, 7168, 20480, 49152, 196608, 786432, 0 }
+#define SQR_FFT_MODF_THRESHOLD          264
+#define SQR_FFT_THRESHOLD              1664
 
 #define MULLOW_BASECASE_THRESHOLD         3
 #define MULLOW_DC_THRESHOLD              33
 #define MULLOW_MUL_N_THRESHOLD         3913
 
-#define MULMOD_BNM1_THRESHOLD            12
+#define MULMOD_BNM1_THRESHOLD            16
 
-#define DC_DIV_QR_THRESHOLD              21
-#define REDC_1_TO_REDC_N_THRESHOLD       91
+#define DC_DIV_QR_THRESHOLD              30
+#define REDC_1_TO_REDC_N_THRESHOLD       60
 
 #define MATRIX22_STRASSEN_THRESHOLD      13
-#define HGCD_THRESHOLD                   93
-#define GCD_DC_THRESHOLD                241
-#define GCDEXT_DC_THRESHOLD             298
+#define HGCD_THRESHOLD                   89
+#define GCD_DC_THRESHOLD                253
+#define GCDEXT_DC_THRESHOLD             288
 #define JACOBI_BASE_METHOD                1
 
 #define MOD_1_NORM_THRESHOLD              0  /* always */
 #define MOD_1_UNNORM_THRESHOLD            0  /* always */
-#define MOD_1_1_THRESHOLD                30
-#define MOD_1_2_THRESHOLD                31
-#define MOD_1_4_THRESHOLD                32
+#define MOD_1_1_THRESHOLD                27
+#define MOD_1_2_THRESHOLD                28
+#define MOD_1_4_THRESHOLD                30
 #define USE_PREINV_DIVREM_1               0
 #define USE_PREINV_MOD_1                  0
 #define DIVEXACT_1_THRESHOLD              0  /* always (native) */
 #define MODEXACT_1_ODD_THRESHOLD          0  /* always */
 
-#define GET_STR_DC_THRESHOLD             12
-#define GET_STR_PRECOMPUTE_THRESHOLD     25
-#define SET_STR_DC_THRESHOLD            537
-#define SET_STR_PRECOMPUTE_THRESHOLD   1639
+#define GET_STR_DC_THRESHOLD             14
+#define GET_STR_PRECOMPUTE_THRESHOLD     24
+#define SET_STR_DC_THRESHOLD            650
+#define SET_STR_PRECOMPUTE_THRESHOLD   1648
diff -r 4806080fb07e -r d5f461351642 mpn/x86/p6/gmp-mparam.h
--- a/mpn/x86/p6/gmp-mparam.h	Sun Nov 29 19:29:11 2009 +0100
+++ b/mpn/x86/p6/gmp-mparam.h	Sun Nov 29 20:26:42 2009 +0100
@@ -23,10 +23,10 @@
 #define BYTES_PER_MP_LIMB 4
 
 
-/* NOTE: In a fat binary build SQR_TOOM2_THRESHOLD     here cannot be
-   smaller than the value in mpn/x86/p6/mmx/gmp-mparam.h.  The former is
-   used as a hard limit in mpn/x86/p6/sqr_basecase.asm, and that file will
-   be run by the p6/mmx cpus (pentium2, pentium3).  */
+/* NOTE: In a fat binary build SQR_TOOM2_THRESHOLD here cannot be smaller than
+   the value in mpn/x86/p6/mmx/gmp-mparam.h.  The former is used as a hard
+   limit in mpn/x86/p6/sqr_basecase.asm, and that file will be run by the
+   p6/mmx cpus (pentium2, pentium3).  */
 
 
 /* 200MHz Pentium Pro */
diff -r 4806080fb07e -r d5f461351642 mpn/x86/p6/mmx/gmp-mparam.h
--- a/mpn/x86/p6/mmx/gmp-mparam.h	Sun Nov 29 19:29:11 2009 +0100
+++ b/mpn/x86/p6/mmx/gmp-mparam.h	Sun Nov 29 20:26:42 2009 +0100
@@ -23,55 +23,61 @@
 #define BYTES_PER_MP_LIMB 4
 
 
-/* NOTE: In a fat binary build SQR_TOOM2_THRESHOLD     here cannot be more
-   than the value in mpn/x86/p6/gmp-mparam.h.  The latter is used as a hard
-   limit in mpn/x86/p6/sqr_basecase.asm.  */
+/* NOTE: In a fat binary build SQR_TOOM2_THRESHOLD here cannot be more than the
+   value in mpn/x86/p6/gmp-mparam.h.  The latter is used as a hard limit in
+   mpn/x86/p6/sqr_basecase.asm.  */
 
 
-/* 1867 MHz P6 model 13 */
+/* 800 MHz P6 model 8 */
 
-/* Generated by tuneup.c, 2009-03-02, gcc 4.3 */
+/* Generated by tuneup.c, 2009-11-29, gcc 3.4 */
 
-#define MUL_TOOM22_THRESHOLD             20
-#define MUL_TOOM33_THRESHOLD             74
-#define MUL_TOOM44_THRESHOLD            166
+#define MUL_TOOM22_THRESHOLD             22
+#define MUL_TOOM33_THRESHOLD             73
+#define MUL_TOOM44_THRESHOLD            184
 
 #define SQR_BASECASE_THRESHOLD            0  /* always (native) */
-#define SQR_TOOM2_THRESHOLD              30
-#define SQR_TOOM3_THRESHOLD             101
-#define SQR_TOOM4_THRESHOLD             154
+#define SQR_TOOM2_THRESHOLD              48
+#define SQR_TOOM3_THRESHOLD              81
+#define SQR_TOOM4_THRESHOLD             136
+
+#define MUL_FFT_TABLE  { 368, 800, 1408, 3584, 10240, 40960, 163840, 393216, 0 }
+#define MUL_FFT_MODF_THRESHOLD          400
+#define MUL_FFT_THRESHOLD              5632
+
+#define SQR_FFT_TABLE  { 336, 800, 1408, 3584, 10240, 40960, 163840, 393216, 0 }
+#define SQR_FFT_MODF_THRESHOLD          368
+#define SQR_FFT_THRESHOLD              3328
 
 #define MULLOW_BASECASE_THRESHOLD         7
-#define MULLOW_DC_THRESHOLD              39
-#define MULLOW_MUL_N_THRESHOLD          230
+#define MULLOW_DC_THRESHOLD              62
+#define MULLOW_MUL_N_THRESHOLD        11138
 
-#define DIV_SB_PREINV_THRESHOLD           0  /* always */
-#define DIV_DC_THRESHOLD                 21
-#define POWM_THRESHOLD                  154
+#define MULMOD_BNM1_THRESHOLD            16
 
-#define MATRIX22_STRASSEN_THRESHOLD      23
-#define HGCD_THRESHOLD                   72
-#define GCD_DC_THRESHOLD                321
-#define GCDEXT_DC_THRESHOLD             416
+#define DC_DIV_QR_THRESHOLD              82


More information about the gmp-commit mailing list