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

mercurial at gmplib.org mercurial at gmplib.org
Tue Dec 22 13:41:02 CET 2009


details:   /home/hgfiles/gmp/rev/ba64d9803e25
changeset: 13183:ba64d9803e25
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Dec 22 13:40:59 2009 +0100
description:
Retune.

diffstat:

 mpn/arm/gmp-mparam.h                 |  100 +++++++++++++++++---------------
 mpn/pa64/gmp-mparam.h                |   97 +++++++++++++++++---------------
 mpn/powerpc32/750/gmp-mparam.h       |   96 +++++++++++++++++---------------
 mpn/powerpc32/gmp-mparam.h           |   96 +++++++++++++++++--------------
 mpn/powerpc64/mode64/p4/gmp-mparam.h |   96 +++++++++++++++++---------------
 mpn/powerpc64/mode64/p5/gmp-mparam.h |   94 ++++++++++++++++--------------
 mpn/sparc64/gmp-mparam.h             |  104 ++++++++++++++++++----------------
 mpn/x86/k7/gmp-mparam.h              |   96 ++++++++++++++++---------------
 mpn/x86/p6/mmx/gmp-mparam.h          |   97 +++++++++++++++++---------------
 mpn/x86/p6/sse2/gmp-mparam.h         |   94 ++++++++++++++++--------------
 mpn/x86/pentium4/sse2/gmp-mparam.h   |   92 ++++++++++++++++--------------
 mpn/x86_64/atom/gmp-mparam.h         |   96 +++++++++++++++++---------------
 mpn/x86_64/core2/gmp-mparam.h        |   98 +++++++++++++++++---------------
 mpn/x86_64/corei/gmp-mparam.h        |  100 +++++++++++++++++---------------
 mpn/x86_64/gmp-mparam.h              |   95 ++++++++++++++++---------------
 mpn/x86_64/pentium4/gmp-mparam.h     |   96 +++++++++++++++++---------------
 16 files changed, 821 insertions(+), 726 deletions(-)

diffs (truncated from 1857 to 300 lines):

diff -r 86a38a5e0a39 -r ba64d9803e25 mpn/arm/gmp-mparam.h
--- a/mpn/arm/gmp-mparam.h	Tue Dec 22 12:14:29 2009 +0100
+++ b/mpn/arm/gmp-mparam.h	Tue Dec 22 13:40:59 2009 +0100
@@ -23,61 +23,67 @@
 
 /* 593MHz ARM (gcc50.fsffrance.org) */
 
-/* Generated by tuneup.c, 2009-11-29, gcc 4.3 */
+#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_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 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 MUL_FFT_TABLE  { 368, 928, 1920, 4608, 14336, 40960, 163840, 655360, 0 }
-#define MUL_FFT_MODF_THRESHOLD          384
-#define MUL_FFT_THRESHOLD              6912
+#define MULMOD_BNM1_THRESHOLD              20
+#define SQRMOD_BNM1_THRESHOLD              26
+
+#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 SQR_FFT_TABLE  { 432, 928, 1664, 4608, 10240, 40960, 163840, 655360, 0 }
-#define SQR_FFT_MODF_THRESHOLD          376
-#define SQR_FFT_THRESHOLD              7168
+#define SQR_FFT_MODF_THRESHOLD            392
+#define SQR_FFT_THRESHOLD                7168
 
-#define MULLO_BASECASE_THRESHOLD          0  /* always */
-#define MULLO_DC_THRESHOLD              120
-#define MULLO_MUL_N_THRESHOLD         11138
+#define MULLO_BASECASE_THRESHOLD            0  /* always */
+#define MULLO_DC_THRESHOLD                120
+#define MULLO_MUL_N_THRESHOLD           12790
 
-#define MULMOD_BNM1_THRESHOLD            19
+#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             128
-#define DC_DIVAPPR_Q_THRESHOLD          430
-#define DC_BDIV_QR_THRESHOLD            127
-#define DC_BDIV_Q_THRESHOLD             296
-#define INV_MULMOD_BNM1_THRESHOLD        74
-#define INV_NEWTON_THRESHOLD            474
-#define INV_APPR_THRESHOLD               78
-#define BINV_NEWTON_THRESHOLD           942
-#define REDC_1_TO_REDC_N_THRESHOLD      115
+#define INV_MULMOD_BNM1_THRESHOLD          66
+#define INV_NEWTON_THRESHOLD              458
+#define INV_APPR_THRESHOLD                 78
 
-#define MATRIX22_STRASSEN_THRESHOLD      19
-#define HGCD_THRESHOLD                  110
-#define GCD_DC_THRESHOLD                680
-#define GCDEXT_DC_THRESHOLD             521
-#define JACOBI_BASE_METHOD                2
+#define BINV_NEWTON_THRESHOLD            1105
+#define REDC_1_TO_REDC_N_THRESHOLD        116
 
-#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 MATRIX22_STRASSEN_THRESHOLD        18
+#define HGCD_THRESHOLD                    106
+#define GCD_DC_THRESHOLD                  531
+#define GCDEXT_DC_THRESHOLD               562
+#define JACOBI_BASE_METHOD                  2
 
-#define GET_STR_DC_THRESHOLD             14
-#define GET_STR_PRECOMPUTE_THRESHOLD     28
-#define SET_STR_DC_THRESHOLD            309
-#define SET_STR_PRECOMPUTE_THRESHOLD   1037
+#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 GET_STR_DC_THRESHOLD               14
+#define GET_STR_PRECOMPUTE_THRESHOLD       28
+#define SET_STR_DC_THRESHOLD              315
+#define SET_STR_PRECOMPUTE_THRESHOLD     1037
diff -r 86a38a5e0a39 -r ba64d9803e25 mpn/pa64/gmp-mparam.h
--- a/mpn/pa64/gmp-mparam.h	Tue Dec 22 12:14:29 2009 +0100
+++ b/mpn/pa64/gmp-mparam.h	Tue Dec 22 13:40:59 2009 +0100
@@ -23,60 +23,67 @@
 
 /* 440MHz PA8200 */
 
-/* Generated by tuneup.c, 2009-11-29, system compiler */
+#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_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 SQR_BASECASE_THRESHOLD            4
-#define SQR_TOOM2_THRESHOLD              56
-#define SQR_TOOM3_THRESHOLD             169
-#define SQR_TOOM4_THRESHOLD             284
+#define SQR_BASECASE_THRESHOLD              5
+#define SQR_TOOM2_THRESHOLD                60
+#define SQR_TOOM3_THRESHOLD               120
+#define SQR_TOOM4_THRESHOLD               280
+
+#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_MODF_THRESHOLD            280
+#define MUL_FFT_THRESHOLD                1664
 
 #define SQR_FFT_TABLE  { 368, 800, 1728, 3328, 7168, 20480, 81920, 327680, 786432, 0 }
-#define SQR_FFT_MODF_THRESHOLD          264
-#define SQR_FFT_THRESHOLD              1792
+#define SQR_FFT_MODF_THRESHOLD            248
+#define SQR_FFT_THRESHOLD                1792
 
-#define MULLO_BASECASE_THRESHOLD          0  /* always */
-#define MULLO_DC_THRESHOLD              111
-#define MULLO_MUL_N_THRESHOLD          2764
+#define MULLO_BASECASE_THRESHOLD            0  /* always */
+#define MULLO_DC_THRESHOLD                131
+#define MULLO_MUL_N_THRESHOLD            3298
 
-#define MULMOD_BNM1_THRESHOLD            20
+#define DC_DIV_QR_THRESHOLD               123
+#define DC_DIVAPPR_Q_THRESHOLD            369
+#define DC_BDIV_QR_THRESHOLD              142
+#define DC_BDIV_Q_THRESHOLD               312
 
-#define DC_DIV_QR_THRESHOLD             124
-#define DC_BDIV_QR_THRESHOLD            150
-#define DC_BDIV_Q_THRESHOLD             312
-#define INV_MULMOD_BNM1_THRESHOLD        58
-#define INV_NEWTON_THRESHOLD            324
-#define INV_APPR_THRESHOLD                4
-#define BINV_NEWTON_THRESHOLD           360
-#define REDC_1_TO_REDC_N_THRESHOLD      106
+#define INV_MULMOD_BNM1_THRESHOLD          58
+#define INV_NEWTON_THRESHOLD              315
+#define INV_APPR_THRESHOLD                  4
 
-#define MATRIX22_STRASSEN_THRESHOLD      11
-#define HGCD_THRESHOLD                  236
-#define GCD_DC_THRESHOLD                758
-#define GCDEXT_DC_THRESHOLD             744
-#define JACOBI_BASE_METHOD                2
+#define BINV_NEWTON_THRESHOLD             363
+#define REDC_1_TO_REDC_N_THRESHOLD        101
 
-#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 MATRIX22_STRASSEN_THRESHOLD        11
+#define HGCD_THRESHOLD                    234
+#define GCD_DC_THRESHOLD                  684
+#define GCDEXT_DC_THRESHOLD               545
+#define JACOBI_BASE_METHOD                  2
 
-#define GET_STR_DC_THRESHOLD             20
-#define GET_STR_PRECOMPUTE_THRESHOLD     23
-#define SET_STR_DC_THRESHOLD           2008
-#define SET_STR_PRECOMPUTE_THRESHOLD   4066
+#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               21
+#define GET_STR_PRECOMPUTE_THRESHOLD       25
+#define SET_STR_DC_THRESHOLD             1877
+#define SET_STR_PRECOMPUTE_THRESHOLD     4036
diff -r 86a38a5e0a39 -r ba64d9803e25 mpn/powerpc32/750/gmp-mparam.h
--- a/mpn/powerpc32/750/gmp-mparam.h	Tue Dec 22 12:14:29 2009 +0100
+++ b/mpn/powerpc32/750/gmp-mparam.h	Tue Dec 22 13:40:59 2009 +0100
@@ -26,60 +26,66 @@
 
 /* 450 MHz PPC 7400 */
 
-/* Generated by tuneup.c, 2009-11-29, gcc 4.0 */
+#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_TOOM32_TO_TOOM43_THRESHOLD     65
+#define MUL_TOOM32_TO_TOOM53_THRESHOLD     69
+#define MUL_TOOM32_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             143
+#define SQR_BASECASE_THRESHOLD              4
+#define SQR_TOOM2_THRESHOLD                18
+#define SQR_TOOM3_THRESHOLD                57
+#define SQR_TOOM4_THRESHOLD                88
 
 #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            232
+#define MUL_FFT_THRESHOLD                2816
 
 #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            216
+#define SQR_FFT_THRESHOLD                2304
 
-#define MULLO_BASECASE_THRESHOLD          0  /* always */
-#define MULLO_DC_THRESHOLD               33
-#define MULLO_MUL_N_THRESHOLD          5472
+#define MULLO_BASECASE_THRESHOLD            0  /* always */
+#define MULLO_DC_THRESHOLD                 34
+#define MULLO_MUL_N_THRESHOLD            5472
 
-#define MULMOD_BNM1_THRESHOLD            10
+#define MULMOD_BNM1_THRESHOLD               9
+#define SQRMOD_BNM1_THRESHOLD              12
 
-#define DC_DIV_QR_THRESHOLD              31
-#define DC_DIVAPPR_Q_THRESHOLD          117
-#define DC_BDIV_QR_THRESHOLD             35
-#define DC_BDIV_Q_THRESHOLD              86
-#define INV_MULMOD_BNM1_THRESHOLD        76
-#define INV_NEWTON_THRESHOLD            146
-#define INV_APPR_THRESHOLD               23
-#define BINV_NEWTON_THRESHOLD           157
-#define REDC_1_TO_REDC_N_THRESHOLD       39
+#define DC_DIV_QR_THRESHOLD                31
+#define DC_DIVAPPR_Q_THRESHOLD            119
+#define DC_BDIV_QR_THRESHOLD               35
+#define DC_BDIV_Q_THRESHOLD                80
 


More information about the gmp-commit mailing list