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

mercurial at gmplib.org mercurial at gmplib.org
Thu Dec 31 01:01:39 CET 2009


details:   /home/hgfiles/gmp/rev/3b4e5ecc8669
changeset: 13276:3b4e5ecc8669
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Dec 31 01:01:36 2009 +0100
description:
Retune.

diffstat:

 mpn/arm/gmp-mparam.h                 |   70 ++++++++++--------
 mpn/ia64/gmp-mparam.h                |   28 ++++---
 mpn/pa32/hppa2_0/gmp-mparam.h        |   34 +++++---
 mpn/pa64/gmp-mparam.h                |   62 +++++++++-------
 mpn/powerpc32/750/gmp-mparam.h       |   54 ++++++++------
 mpn/powerpc32/gmp-mparam.h           |   58 ++++++++-------
 mpn/powerpc64/mode64/p3/gmp-mparam.h |   70 ++++++++++--------
 mpn/powerpc64/mode64/p4/gmp-mparam.h |   84 ++++++++++++----------
 mpn/powerpc64/mode64/p5/gmp-mparam.h |   82 ++++++++++++----------
 mpn/sparc32/v9/gmp-mparam.h          |  126 ++++++++++++++++++----------------
 mpn/sparc64/gmp-mparam.h             |   34 +++++---
 mpn/x86/k6/gmp-mparam.h              |   94 +++++++++++++------------
 mpn/x86/p6/sse2/gmp-mparam.h         |   70 ++++++++++--------
 mpn/x86/pentium4/sse2/gmp-mparam.h   |   92 +++++++++++++-----------
 mpn/x86_64/atom/gmp-mparam.h         |   29 ++++---
 mpn/x86_64/core2/gmp-mparam.h        |   44 ++++++-----
 mpn/x86_64/corei/gmp-mparam.h        |  116 ++++++++++++++++---------------
 mpn/x86_64/gmp-mparam.h              |  100 ++++++++++++++-------------
 mpn/x86_64/pentium4/gmp-mparam.h     |   72 ++++++++++---------
 19 files changed, 716 insertions(+), 603 deletions(-)

diffs (truncated from 1936 to 300 lines):

diff -r b746141353c9 -r 3b4e5ecc8669 mpn/arm/gmp-mparam.h
--- a/mpn/arm/gmp-mparam.h	Thu Dec 31 00:14:45 2009 +0100
+++ b/mpn/arm/gmp-mparam.h	Thu Dec 31 01:01:36 2009 +0100
@@ -23,6 +23,20 @@
 
 /* 593MHz ARM (gcc50.fsffrance.org) */
 
+#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          9
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD     MP_SIZE_T_MAX
+#define MOD_1_2_TO_MOD_1_4_THRESHOLD     MP_SIZE_T_MAX
+#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 MUL_TOOM22_THRESHOLD                34
 #define MUL_TOOM33_THRESHOLD               121
 #define MUL_TOOM44_THRESHOLD               191
@@ -30,9 +44,9 @@
 #define MUL_TOOM8H_THRESHOLD               547
 
 #define MUL_TOOM32_TO_TOOM43_THRESHOLD     129
-#define MUL_TOOM32_TO_TOOM53_THRESHOLD     199
+#define MUL_TOOM32_TO_TOOM53_THRESHOLD     191
 #define MUL_TOOM42_TO_TOOM53_THRESHOLD     117
-#define MUL_TOOM42_TO_TOOM63_THRESHOLD     134
+#define MUL_TOOM42_TO_TOOM63_THRESHOLD     137
 
 #define SQR_BASECASE_THRESHOLD              13
 #define SQR_TOOM2_THRESHOLD                 78
@@ -41,54 +55,46 @@
 #define SQR_TOOM6_THRESHOLD                330
 #define SQR_TOOM8_THRESHOLD                422
 
-#define MULMOD_BNM1_THRESHOLD               19
+#define MULMOD_BNM1_THRESHOLD               21
 #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                13312
+#define MUL_FFT_THRESHOLD                17408
 
-#define SQR_FFT_TABLE  { 432, 928, 1664, 4608, 10240, 40960, 163840, 655360, 0 }
+#define SQR_FFT_TABLE  { 432, 928, 1920, 4608, 10240, 40960, 163840, 655360, 0 }
 #define SQR_FFT_MODF_THRESHOLD             392
-#define SQR_FFT_THRESHOLD                11264
+#define SQR_FFT_THRESHOLD                 2816
 
 #define MULLO_BASECASE_THRESHOLD             0  /* always */
 #define MULLO_DC_THRESHOLD                 120
-#define MULLO_MUL_N_THRESHOLD            19371
+#define MULLO_MUL_N_THRESHOLD            34763
 
-#define DC_DIV_QR_THRESHOLD                132
-#define DC_DIVAPPR_Q_THRESHOLD             446
+#define DC_DIV_QR_THRESHOLD                134
+#define DC_DIVAPPR_Q_THRESHOLD             442
 #define DC_BDIV_QR_THRESHOLD               127
-#define DC_BDIV_Q_THRESHOLD                298
+#define DC_BDIV_Q_THRESHOLD                296
 
-#define INV_MULMOD_BNM1_THRESHOLD           66
-#define INV_NEWTON_THRESHOLD               462
+#define INV_MULMOD_BNM1_THRESHOLD           78
+#define INV_NEWTON_THRESHOLD               458
 #define INV_APPR_THRESHOLD                 454
 
-#define BINV_NEWTON_THRESHOLD             1055
+#define BINV_NEWTON_THRESHOLD              987
 #define REDC_1_TO_REDC_N_THRESHOLD         116
 
+#define MU_DIV_QR_THRESHOLD               4765
+#define MU_DIVAPPR_Q_THRESHOLD            4765
+#define MUPI_DIV_QR_THRESHOLD              693
+#define MU_BDIV_QR_THRESHOLD              1308
+#define MU_BDIV_Q_THRESHOLD               3689
+
 #define MATRIX22_STRASSEN_THRESHOLD         17
-#define HGCD_THRESHOLD                     105
-#define GCD_DC_THRESHOLD                   947
-#define GCDEXT_DC_THRESHOLD                403
+#define HGCD_THRESHOLD                     109
+#define GCD_DC_THRESHOLD                   697
+#define GCDEXT_DC_THRESHOLD                535
 #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_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        29
-#define SET_STR_DC_THRESHOLD               318
-#define SET_STR_PRECOMPUTE_THRESHOLD      1043
+#define SET_STR_DC_THRESHOLD               321
+#define SET_STR_PRECOMPUTE_THRESHOLD      1037
diff -r b746141353c9 -r 3b4e5ecc8669 mpn/ia64/gmp-mparam.h
--- a/mpn/ia64/gmp-mparam.h	Thu Dec 31 00:14:45 2009 +0100
+++ b/mpn/ia64/gmp-mparam.h	Thu Dec 31 01:01:36 2009 +0100
@@ -25,6 +25,17 @@
 
 /* Generated by tuneup.c, 2009-11-29, gcc 4.2 */
 
+#define MOD_1_NORM_THRESHOLD                 0  /* always */
+#define MOD_1_UNNORM_THRESHOLD               0  /* always */
+#define MOD_1N_TO_MOD_1_1_THRESHOLD         14
+#define MOD_1U_TO_MOD_1_1_THRESHOLD          8
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0
+#define MOD_1_2_TO_MOD_1_4_THRESHOLD        14
+#define PREINV_MOD_1_TO_MOD_1_THRESHOLD     22
+#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 MUL_TOOM22_THRESHOLD                44
 #define MUL_TOOM33_THRESHOLD                89
 #define MUL_TOOM44_THRESHOLD               232
@@ -71,23 +82,18 @@
 #define REDC_1_TO_REDC_2_THRESHOLD          10
 #define REDC_2_TO_REDC_N_THRESHOLD         164
 
+#define MU_DIV_QR_THRESHOLD               3279
+#define MU_DIVAPPR_Q_THRESHOLD            2747
+#define MUPI_DIV_QR_THRESHOLD                6
+#define MU_BDIV_QR_THRESHOLD              3344
+#define MU_BDIV_Q_THRESHOLD               2857
+
 #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          8
-#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0
-#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
diff -r b746141353c9 -r 3b4e5ecc8669 mpn/pa32/hppa2_0/gmp-mparam.h
--- a/mpn/pa32/hppa2_0/gmp-mparam.h	Thu Dec 31 00:14:45 2009 +0100
+++ b/mpn/pa32/hppa2_0/gmp-mparam.h	Thu Dec 31 01:01:36 2009 +0100
@@ -25,6 +25,20 @@
 
 /* Generated by tuneup.c, 2009-11-29, gcc 4.2 */
 
+#define DIVREM_1_NORM_THRESHOLD              3
+#define DIVREM_1_UNNORM_THRESHOLD            4
+#define MOD_1_NORM_THRESHOLD                 3
+#define MOD_1_UNNORM_THRESHOLD               4
+#define MOD_1N_TO_MOD_1_1_THRESHOLD         14
+#define MOD_1U_TO_MOD_1_1_THRESHOLD          8
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0
+#define MOD_1_2_TO_MOD_1_4_THRESHOLD        18
+#define PREINV_MOD_1_TO_MOD_1_THRESHOLD     22
+#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 MUL_TOOM22_THRESHOLD                15
 #define MUL_TOOM33_THRESHOLD                91
 #define MUL_TOOM44_THRESHOLD               154
@@ -70,26 +84,18 @@
 #define BINV_NEWTON_THRESHOLD              327
 #define REDC_1_TO_REDC_N_THRESHOLD          70
 
+#define MU_DIV_QR_THRESHOLD               1258
+#define MU_DIVAPPR_Q_THRESHOLD            1283
+#define MUPI_DIV_QR_THRESHOLD              263
+#define MU_BDIV_QR_THRESHOLD              1258
+#define MU_BDIV_Q_THRESHOLD               1308
+
 #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          8
-#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0
-#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
diff -r b746141353c9 -r 3b4e5ecc8669 mpn/pa64/gmp-mparam.h
--- a/mpn/pa64/gmp-mparam.h	Thu Dec 31 00:14:45 2009 +0100
+++ b/mpn/pa64/gmp-mparam.h	Thu Dec 31 01:01:36 2009 +0100
@@ -23,26 +23,40 @@
 
 /* 440MHz PA8200 */
 
+#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_1N_TO_MOD_1_1_THRESHOLD      MP_SIZE_T_MAX  /* never */
+#define MOD_1U_TO_MOD_1_1_THRESHOLD      MP_SIZE_T_MAX
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD     MP_SIZE_T_MAX
+#define MOD_1_2_TO_MOD_1_4_THRESHOLD     MP_SIZE_T_MAX
+#define PREINV_MOD_1_TO_MOD_1_THRESHOLD  MP_SIZE_T_MAX  /* never */
+#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        MP_SIZE_T_MAX  /* never */
+
 #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_TOOM8H_THRESHOLD               236
 
 #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_TOOM53_THRESHOLD     132
 #define MUL_TOOM42_TO_TOOM63_THRESHOLD      54
 
-#define SQR_BASECASE_THRESHOLD               5
-#define SQR_TOOM2_THRESHOLD                 56
+#define SQR_BASECASE_THRESHOLD               4
+#define SQR_TOOM2_THRESHOLD                 54
 #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 SQRMOD_BNM1_THRESHOLD               17
 
 #define MUL_FFT_TABLE  { 400, 800, 1600, 2816, 7168, 20480, 81920, 327680, 0 }
 #define MUL_FFT_MODF_THRESHOLD             360
@@ -53,8 +67,8 @@
 #define SQR_FFT_THRESHOLD                 2432
 
 #define MULLO_BASECASE_THRESHOLD             0  /* always */
-#define MULLO_DC_THRESHOLD                 112
-#define MULLO_MUL_N_THRESHOLD             4672
+#define MULLO_DC_THRESHOLD                 113
+#define MULLO_MUL_N_THRESHOLD             8648
 
 #define DC_DIV_QR_THRESHOLD                123
 #define DC_DIVAPPR_Q_THRESHOLD             372
@@ -65,30 +79,22 @@
 #define INV_NEWTON_THRESHOLD               315
 #define INV_APPR_THRESHOLD                 315
 
-#define BINV_NEWTON_THRESHOLD              360
+#define BINV_NEWTON_THRESHOLD              363
 #define REDC_1_TO_REDC_N_THRESHOLD         107
 
-#define MATRIX22_STRASSEN_THRESHOLD          9
-#define HGCD_THRESHOLD                     236
-#define GCD_DC_THRESHOLD                   702
-#define GCDEXT_DC_THRESHOLD                548
-#define JACOBI_BASE_METHOD                   2
+#define MU_DIV_QR_THRESHOLD               1387
+#define MU_DIVAPPR_Q_THRESHOLD            1387
+#define MUPI_DIV_QR_THRESHOLD                6
+#define MU_BDIV_QR_THRESHOLD              1334
+#define MU_BDIV_Q_THRESHOLD               1589
 


More information about the gmp-commit mailing list