[Gmp-commit] /var/hg/gmp-5.0: Tuneup.

mercurial at gmplib.org mercurial at gmplib.org
Mon Jan 23 20:40:13 CET 2012


details:   /var/hg/gmp-5.0/rev/3b7cf3fa616f
changeset: 13517:3b7cf3fa616f
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Jan 23 20:40:07 2012 +0100
description:
Tuneup.

diffstat:

 mpn/alpha/ev5/gmp-mparam.h           |  10 +++++-----
 mpn/alpha/ev6/gmp-mparam.h           |   6 +++---
 mpn/powerpc64/mode64/p3/gmp-mparam.h |  12 ++++++------
 mpn/x86/k7/gmp-mparam.h              |   6 +++---
 mpn/x86_64/atom/gmp-mparam.h         |   8 ++++----
 mpn/x86_64/core2/gmp-mparam.h        |   8 ++++----
 mpn/x86_64/coreinhm/gmp-mparam.h     |  26 +++++++++++++-------------
 mpn/x86_64/nano/gmp-mparam.h         |  30 +++++++++++++++---------------
 mpn/x86_64/pentium4/gmp-mparam.h     |  22 +++++++++++-----------
 9 files changed, 64 insertions(+), 64 deletions(-)

diffs (298 lines):

diff -r aef90840a8fe -r 3b7cf3fa616f mpn/alpha/ev5/gmp-mparam.h
--- a/mpn/alpha/ev5/gmp-mparam.h	Mon Jan 23 17:53:13 2012 +0100
+++ b/mpn/alpha/ev5/gmp-mparam.h	Mon Jan 23 20:40:07 2012 +0100
@@ -147,9 +147,9 @@
 #define DC_BDIV_QR_THRESHOLD                51
 #define DC_BDIV_Q_THRESHOLD                120
 
-#define INV_MULMOD_BNM1_THRESHOLD          100
-#define INV_NEWTON_THRESHOLD               188
-#define INV_APPR_THRESHOLD                 189
+#define INV_MULMOD_BNM1_THRESHOLD           84
+#define INV_NEWTON_THRESHOLD               174
+#define INV_APPR_THRESHOLD                 180
 
 #define BINV_NEWTON_THRESHOLD              199
 #define REDC_1_TO_REDC_N_THRESHOLD          55
@@ -160,8 +160,8 @@
 #define MU_BDIV_QR_THRESHOLD               792
 #define MU_BDIV_Q_THRESHOLD                942
 
-#define MATRIX22_STRASSEN_THRESHOLD         13
-#define HGCD_THRESHOLD                     101
+#define MATRIX22_STRASSEN_THRESHOLD         15
+#define HGCD_THRESHOLD                      94
 #define GCD_DC_THRESHOLD                   306
 #define GCDEXT_DC_THRESHOLD                210
 #define JACOBI_BASE_METHOD                   2
diff -r aef90840a8fe -r 3b7cf3fa616f mpn/alpha/ev6/gmp-mparam.h
--- a/mpn/alpha/ev6/gmp-mparam.h	Mon Jan 23 17:53:13 2012 +0100
+++ b/mpn/alpha/ev6/gmp-mparam.h	Mon Jan 23 20:40:07 2012 +0100
@@ -156,9 +156,9 @@
 #define DC_BDIV_QR_THRESHOLD               110
 #define DC_BDIV_Q_THRESHOLD                318
 
-#define INV_MULMOD_BNM1_THRESHOLD          109
-#define INV_NEWTON_THRESHOLD               390
-#define INV_APPR_THRESHOLD                 372
+#define INV_MULMOD_BNM1_THRESHOLD           79
+#define INV_NEWTON_THRESHOLD               387
+#define INV_APPR_THRESHOLD                 381
 
 #define BINV_NEWTON_THRESHOLD              393
 #define REDC_1_TO_REDC_N_THRESHOLD         110
diff -r aef90840a8fe -r 3b7cf3fa616f mpn/powerpc64/mode64/p3/gmp-mparam.h
--- a/mpn/powerpc64/mode64/p3/gmp-mparam.h	Mon Jan 23 17:53:13 2012 +0100
+++ b/mpn/powerpc64/mode64/p3/gmp-mparam.h	Mon Jan 23 20:40:07 2012 +0100
@@ -132,18 +132,18 @@
 #define DC_BDIV_QR_THRESHOLD                28
 #define DC_BDIV_Q_THRESHOLD                 62
 
-#define INV_MULMOD_BNM1_THRESHOLD           76
-#define INV_NEWTON_THRESHOLD               117
-#define INV_APPR_THRESHOLD                 101
+#define INV_MULMOD_BNM1_THRESHOLD           35
+#define INV_NEWTON_THRESHOLD                97
+#define INV_APPR_THRESHOLD                  94
 
-#define BINV_NEWTON_THRESHOLD              133
+#define BINV_NEWTON_THRESHOLD              115
 #define REDC_1_TO_REDC_N_THRESHOLD          30
 
-#define MU_DIV_QR_THRESHOLD                618
+#define MU_DIV_QR_THRESHOLD                551
 #define MU_DIVAPPR_Q_THRESHOLD             551
 #define MUPI_DIV_QR_THRESHOLD               49
 #define MU_BDIV_QR_THRESHOLD               492
-#define MU_BDIV_Q_THRESHOLD                541
+#define MU_BDIV_Q_THRESHOLD                492
 
 #define MATRIX22_STRASSEN_THRESHOLD          9
 #define HGCD_THRESHOLD                      55
diff -r aef90840a8fe -r 3b7cf3fa616f mpn/x86/k7/gmp-mparam.h
--- a/mpn/x86/k7/gmp-mparam.h	Mon Jan 23 17:53:13 2012 +0100
+++ b/mpn/x86/k7/gmp-mparam.h	Mon Jan 23 20:40:07 2012 +0100
@@ -160,9 +160,9 @@
 #define DC_BDIV_QR_THRESHOLD                82
 #define DC_BDIV_Q_THRESHOLD                268
 
-#define INV_MULMOD_BNM1_THRESHOLD           75
-#define INV_NEWTON_THRESHOLD               300
-#define INV_APPR_THRESHOLD                 303
+#define INV_MULMOD_BNM1_THRESHOLD           62
+#define INV_NEWTON_THRESHOLD               284
+#define INV_APPR_THRESHOLD                 290
 
 #define BINV_NEWTON_THRESHOLD              264
 #define REDC_1_TO_REDC_N_THRESHOLD          86
diff -r aef90840a8fe -r 3b7cf3fa616f mpn/x86_64/atom/gmp-mparam.h
--- a/mpn/x86_64/atom/gmp-mparam.h	Mon Jan 23 17:53:13 2012 +0100
+++ b/mpn/x86_64/atom/gmp-mparam.h	Mon Jan 23 20:40:07 2012 +0100
@@ -23,7 +23,7 @@
 
 #define MOD_1_NORM_THRESHOLD                 0  /* always */
 #define MOD_1_UNNORM_THRESHOLD               0  /* always */
-#define MOD_1N_TO_MOD_1_1_THRESHOLD         19
+#define MOD_1N_TO_MOD_1_1_THRESHOLD         37
 #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        16
@@ -152,9 +152,9 @@
 #define DC_BDIV_QR_THRESHOLD                27
 #define DC_BDIV_Q_THRESHOLD                 62
 
-#define INV_MULMOD_BNM1_THRESHOLD          100
-#define INV_NEWTON_THRESHOLD               147
-#define INV_APPR_THRESHOLD                 108
+#define INV_MULMOD_BNM1_THRESHOLD           18
+#define INV_NEWTON_THRESHOLD               131
+#define INV_APPR_THRESHOLD                 110
 
 #define BINV_NEWTON_THRESHOLD              165
 #define REDC_1_TO_REDC_2_THRESHOLD          12
diff -r aef90840a8fe -r 3b7cf3fa616f mpn/x86_64/core2/gmp-mparam.h
--- a/mpn/x86_64/core2/gmp-mparam.h	Mon Jan 23 17:53:13 2012 +0100
+++ b/mpn/x86_64/core2/gmp-mparam.h	Mon Jan 23 20:40:07 2012 +0100
@@ -162,12 +162,12 @@
 #define DC_BDIV_QR_THRESHOLD                57
 #define DC_BDIV_Q_THRESHOLD                156
 
-#define INV_MULMOD_BNM1_THRESHOLD          126
-#define INV_NEWTON_THRESHOLD               198
-#define INV_APPR_THRESHOLD                 178
+#define INV_MULMOD_BNM1_THRESHOLD           46
+#define INV_NEWTON_THRESHOLD               172
+#define INV_APPR_THRESHOLD                 172
 
 #define BINV_NEWTON_THRESHOLD              260
-#define REDC_1_TO_REDC_2_THRESHOLD          10
+#define REDC_1_TO_REDC_2_THRESHOLD           4
 #define REDC_2_TO_REDC_N_THRESHOLD          63
 
 #define MU_DIV_QR_THRESHOLD               1334
diff -r aef90840a8fe -r 3b7cf3fa616f mpn/x86_64/coreinhm/gmp-mparam.h
--- a/mpn/x86_64/coreinhm/gmp-mparam.h	Mon Jan 23 17:53:13 2012 +0100
+++ b/mpn/x86_64/coreinhm/gmp-mparam.h	Mon Jan 23 20:40:07 2012 +0100
@@ -26,19 +26,19 @@
 #define MOD_1_NORM_THRESHOLD                 0  /* always */
 #define MOD_1_UNNORM_THRESHOLD               0  /* always */
 #define MOD_1N_TO_MOD_1_1_THRESHOLD          6
-#define MOD_1U_TO_MOD_1_1_THRESHOLD          4
-#define MOD_1_1_TO_MOD_1_2_THRESHOLD         5
-#define MOD_1_2_TO_MOD_1_4_THRESHOLD         8
-#define PREINV_MOD_1_TO_MOD_1_THRESHOLD      9
+#define MOD_1U_TO_MOD_1_1_THRESHOLD          6
+#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     19
 #define USE_PREINV_DIVREM_1                  1  /* native */
 #define DIVEXACT_1_THRESHOLD                 0  /* always (native) */
-#define BMOD_1_TO_MOD_1_THRESHOLD           17
+#define BMOD_1_TO_MOD_1_THRESHOLD           18
 
 #define MUL_TOOM22_THRESHOLD                18
-#define MUL_TOOM33_THRESHOLD                49
-#define MUL_TOOM44_THRESHOLD               142
-#define MUL_TOOM6H_THRESHOLD               202
-#define MUL_TOOM8H_THRESHOLD               284
+#define MUL_TOOM33_THRESHOLD                65
+#define MUL_TOOM44_THRESHOLD               166
+#define MUL_TOOM6H_THRESHOLD               254
+#define MUL_TOOM8H_THRESHOLD               333
 
 #define MUL_TOOM32_TO_TOOM43_THRESHOLD      69
 #define MUL_TOOM32_TO_TOOM53_THRESHOLD      91
@@ -46,7 +46,7 @@
 #define MUL_TOOM42_TO_TOOM63_THRESHOLD      96
 
 #define SQR_BASECASE_THRESHOLD               0  /* always (native) */
-#define SQR_TOOM2_THRESHOLD                 32
+#define SQR_TOOM2_THRESHOLD                 28
 #define SQR_TOOM3_THRESHOLD                105
 #define SQR_TOOM4_THRESHOLD                250
 #define SQR_TOOM6_THRESHOLD                366
@@ -117,7 +117,7 @@
 #define INV_APPR_THRESHOLD                 147
 
 #define BINV_NEWTON_THRESHOLD              230
-#define REDC_1_TO_REDC_2_THRESHOLD           2
+#define REDC_1_TO_REDC_2_THRESHOLD          12
 #define REDC_2_TO_REDC_N_THRESHOLD          59
 
 #define MU_DIV_QR_THRESHOLD               1334
@@ -134,5 +134,5 @@
 
 #define GET_STR_DC_THRESHOLD                13
 #define GET_STR_PRECOMPUTE_THRESHOLD        24
-#define SET_STR_DC_THRESHOLD               438
-#define SET_STR_PRECOMPUTE_THRESHOLD      1330
+#define SET_STR_DC_THRESHOLD               230
+#define SET_STR_PRECOMPUTE_THRESHOLD      1660
diff -r aef90840a8fe -r 3b7cf3fa616f mpn/x86_64/nano/gmp-mparam.h
--- a/mpn/x86_64/nano/gmp-mparam.h	Mon Jan 23 17:53:13 2012 +0100
+++ b/mpn/x86_64/nano/gmp-mparam.h	Mon Jan 23 20:40:07 2012 +0100
@@ -25,18 +25,18 @@
 
 #define MOD_1_NORM_THRESHOLD                 0  /* always */
 #define MOD_1_UNNORM_THRESHOLD               0  /* always */
-#define MOD_1N_TO_MOD_1_1_THRESHOLD          8
+#define MOD_1N_TO_MOD_1_1_THRESHOLD          7
 #define MOD_1U_TO_MOD_1_1_THRESHOLD          6
-#define MOD_1_1_TO_MOD_1_2_THRESHOLD        10
-#define MOD_1_2_TO_MOD_1_4_THRESHOLD        14
-#define PREINV_MOD_1_TO_MOD_1_THRESHOLD     14
+#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     13
 #define USE_PREINV_DIVREM_1                  1  /* native */
 #define DIVEXACT_1_THRESHOLD                 0  /* always (native) */
 #define BMOD_1_TO_MOD_1_THRESHOLD           24
 
 #define MUL_TOOM22_THRESHOLD                28
-#define MUL_TOOM33_THRESHOLD                66
-#define MUL_TOOM44_THRESHOLD               315
+#define MUL_TOOM33_THRESHOLD                33
+#define MUL_TOOM44_THRESHOLD               292
 #define MUL_TOOM6H_THRESHOLD               746
 #define MUL_TOOM8H_THRESHOLD               866
 
@@ -177,13 +177,13 @@
 #define MULLO_DC_THRESHOLD                   0  /* never mpn_mullo_basecase */
 #define MULLO_MUL_N_THRESHOLD             6633
 
-#define DC_DIV_QR_THRESHOLD                 47
-#define DC_DIVAPPR_Q_THRESHOLD             143
-#define DC_BDIV_QR_THRESHOLD                46
+#define DC_DIV_QR_THRESHOLD                 53
+#define DC_DIVAPPR_Q_THRESHOLD             151
+#define DC_BDIV_QR_THRESHOLD                38
 #define DC_BDIV_Q_THRESHOLD                 79
 
-#define INV_MULMOD_BNM1_THRESHOLD          130
-#define INV_NEWTON_THRESHOLD               163
+#define INV_MULMOD_BNM1_THRESHOLD           54
+#define INV_NEWTON_THRESHOLD               149
 #define INV_APPR_THRESHOLD                 155
 
 #define BINV_NEWTON_THRESHOLD              228
@@ -202,7 +202,7 @@
 #define GCDEXT_DC_THRESHOLD                469
 #define JACOBI_BASE_METHOD                   1
 
-#define GET_STR_DC_THRESHOLD                14
-#define GET_STR_PRECOMPUTE_THRESHOLD        22
-#define SET_STR_DC_THRESHOLD               378
-#define SET_STR_PRECOMPUTE_THRESHOLD      2124
+#define GET_STR_DC_THRESHOLD                11
+#define GET_STR_PRECOMPUTE_THRESHOLD        24
+#define SET_STR_DC_THRESHOLD               552
+#define SET_STR_PRECOMPUTE_THRESHOLD      1898
diff -r aef90840a8fe -r 3b7cf3fa616f mpn/x86_64/pentium4/gmp-mparam.h
--- a/mpn/x86_64/pentium4/gmp-mparam.h	Mon Jan 23 17:53:13 2012 +0100
+++ b/mpn/x86_64/pentium4/gmp-mparam.h	Mon Jan 23 20:40:07 2012 +0100
@@ -33,22 +33,22 @@
 #define MOD_1N_TO_MOD_1_1_THRESHOLD          6
 #define MOD_1U_TO_MOD_1_1_THRESHOLD          5
 #define MOD_1_1_TO_MOD_1_2_THRESHOLD        10
-#define MOD_1_2_TO_MOD_1_4_THRESHOLD        34
-#define PREINV_MOD_1_TO_MOD_1_THRESHOLD     16
+#define MOD_1_2_TO_MOD_1_4_THRESHOLD        22
+#define PREINV_MOD_1_TO_MOD_1_THRESHOLD     11
 #define USE_PREINV_DIVREM_1                  1  /* native */
 #define DIVEXACT_1_THRESHOLD                 0  /* always (native) */
 #define BMOD_1_TO_MOD_1_THRESHOLD           24
 
-#define MUL_TOOM22_THRESHOLD                14
+#define MUL_TOOM22_THRESHOLD                12
 #define MUL_TOOM33_THRESHOLD                81
-#define MUL_TOOM44_THRESHOLD               214
-#define MUL_TOOM6H_THRESHOLD               286
+#define MUL_TOOM44_THRESHOLD               121
+#define MUL_TOOM6H_THRESHOLD               270
 #define MUL_TOOM8H_THRESHOLD               430
 
 #define MUL_TOOM32_TO_TOOM43_THRESHOLD      81
 #define MUL_TOOM32_TO_TOOM53_THRESHOLD     138
-#define MUL_TOOM42_TO_TOOM53_THRESHOLD      82
-#define MUL_TOOM42_TO_TOOM63_THRESHOLD      80
+#define MUL_TOOM42_TO_TOOM53_THRESHOLD     144
+#define MUL_TOOM42_TO_TOOM63_THRESHOLD      88
 
 #define SQR_BASECASE_THRESHOLD               0  /* always (native) */
 #define SQR_TOOM2_THRESHOLD                 20
@@ -190,11 +190,11 @@
 #define DC_DIV_QR_THRESHOLD                 28
 #define DC_DIVAPPR_Q_THRESHOLD              60
 #define DC_BDIV_QR_THRESHOLD                31
-#define DC_BDIV_Q_THRESHOLD                 60
+#define DC_BDIV_Q_THRESHOLD                 49
 
-#define INV_MULMOD_BNM1_THRESHOLD          141
-#define INV_NEWTON_THRESHOLD               266
-#define INV_APPR_THRESHOLD                 110
+#define INV_MULMOD_BNM1_THRESHOLD           22
+#define INV_NEWTON_THRESHOLD               226
+#define INV_APPR_THRESHOLD                 108
 
 #define BINV_NEWTON_THRESHOLD              262
 #define REDC_1_TO_REDC_2_THRESHOLD          15


More information about the gmp-commit mailing list