[Gmp-commit] /var/hg/gmp: Retune.

mercurial at gmplib.org mercurial at gmplib.org
Tue Sep 24 12:55:09 CEST 2013


details:   /var/hg/gmp/rev/18070b739e1d
changeset: 16023:18070b739e1d
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Sep 24 12:55:05 2013 +0200
description:
Retune.

diffstat:

 mpn/x86_64/bobcat/gmp-mparam.h   |   54 ++++----
 mpn/x86_64/core2/gmp-mparam.h    |   56 +++++-----
 mpn/x86_64/coreinhm/gmp-mparam.h |  140 ++++++++++++-------------
 mpn/x86_64/k10/gmp-mparam.h      |  175 ++++++++++---------------------
 mpn/x86_64/k8/gmp-mparam.h       |  211 ++++++++++++++------------------------
 5 files changed, 260 insertions(+), 376 deletions(-)

diffs (truncated from 875 to 300 lines):

diff -r ebc3597af052 -r 18070b739e1d mpn/x86_64/bobcat/gmp-mparam.h
--- a/mpn/x86_64/bobcat/gmp-mparam.h	Mon Sep 23 12:13:53 2013 +0200
+++ b/mpn/x86_64/bobcat/gmp-mparam.h	Tue Sep 24 12:55:05 2013 +0200
@@ -40,22 +40,22 @@
 
 #define MUL_TOOM22_THRESHOLD                26
 #define MUL_TOOM33_THRESHOLD                33
-#define MUL_TOOM44_THRESHOLD               286
-#define MUL_TOOM6H_THRESHOLD               381
-#define MUL_TOOM8H_THRESHOLD               557
+#define MUL_TOOM44_THRESHOLD               178
+#define MUL_TOOM6H_THRESHOLD               262
+#define MUL_TOOM8H_THRESHOLD               357
 
-#define MUL_TOOM32_TO_TOOM43_THRESHOLD     113
-#define MUL_TOOM32_TO_TOOM53_THRESHOLD     177
-#define MUL_TOOM42_TO_TOOM53_THRESHOLD     193
-#define MUL_TOOM42_TO_TOOM63_THRESHOLD     189
-#define MUL_TOOM43_TO_TOOM54_THRESHOLD      97
+#define MUL_TOOM32_TO_TOOM43_THRESHOLD      71
+#define MUL_TOOM32_TO_TOOM53_THRESHOLD     165
+#define MUL_TOOM42_TO_TOOM53_THRESHOLD     119
+#define MUL_TOOM42_TO_TOOM63_THRESHOLD     121
+#define MUL_TOOM43_TO_TOOM54_THRESHOLD     160
 
 #define SQR_BASECASE_THRESHOLD               0  /* always (native) */
-#define SQR_TOOM2_THRESHOLD                 26
+#define SQR_TOOM2_THRESHOLD                 28
 #define SQR_TOOM3_THRESHOLD                 98
-#define SQR_TOOM4_THRESHOLD                372
+#define SQR_TOOM4_THRESHOLD                369
 #define SQR_TOOM6_THRESHOLD                  0  /* always */
-#define SQR_TOOM8_THRESHOLD                434
+#define SQR_TOOM8_THRESHOLD                478
 
 #define MULMID_TOOM42_THRESHOLD             22
 
@@ -110,36 +110,36 @@
 #define SQR_FFT_THRESHOLD                 3712
 
 #define MULLO_BASECASE_THRESHOLD             0  /* always */
-#define MULLO_DC_THRESHOLD                  53
+#define MULLO_DC_THRESHOLD                  30
 #define MULLO_MUL_N_THRESHOLD            11278
 
-#define DC_DIV_QR_THRESHOLD                 74
-#define DC_DIVAPPR_Q_THRESHOLD             202
-#define DC_BDIV_QR_THRESHOLD                60
-#define DC_BDIV_Q_THRESHOLD                153
+#define DC_DIV_QR_THRESHOLD                 76
+#define DC_DIVAPPR_Q_THRESHOLD             204
+#define DC_BDIV_QR_THRESHOLD                70
+#define DC_BDIV_Q_THRESHOLD                150
 
 #define INV_MULMOD_BNM1_THRESHOLD           51
 #define INV_NEWTON_THRESHOLD               250
 #define INV_APPR_THRESHOLD                 212
 
 #define BINV_NEWTON_THRESHOLD              252
-#define REDC_1_TO_REDC_2_THRESHOLD          18
-#define REDC_2_TO_REDC_N_THRESHOLD          44
+#define REDC_1_TO_REDC_2_THRESHOLD          71
+#define REDC_2_TO_REDC_N_THRESHOLD           0
 
-#define MU_DIV_QR_THRESHOLD               1499
+#define MU_DIV_QR_THRESHOLD               1528
 #define MU_DIVAPPR_Q_THRESHOLD            1589
-#define MUPI_DIV_QR_THRESHOLD              116
-#define MU_BDIV_QR_THRESHOLD              1120
+#define MUPI_DIV_QR_THRESHOLD              122
+#define MU_BDIV_QR_THRESHOLD              1442
 #define MU_BDIV_Q_THRESHOLD               1470
 
-#define POWM_SEC_TABLE  2,23,195,713,1358,1679
+#define POWM_SEC_TABLE  1,17,65,713,1036
 
 #define MATRIX22_STRASSEN_THRESHOLD         15
-#define HGCD_THRESHOLD                      75
+#define HGCD_THRESHOLD                      92
 #define HGCD_APPR_THRESHOLD                 50
 #define HGCD_REDUCE_THRESHOLD             3014
-#define GCD_DC_THRESHOLD                   501
-#define GCDEXT_DC_THRESHOLD                345
+#define GCD_DC_THRESHOLD                   483
+#define GCDEXT_DC_THRESHOLD                309
 #define JACOBI_BASE_METHOD                   4
 
 #define GET_STR_DC_THRESHOLD                17
@@ -147,5 +147,5 @@
 #define SET_STR_DC_THRESHOLD               345
 #define SET_STR_PRECOMPUTE_THRESHOLD      1414
 
-#define FAC_DSC_THRESHOLD                  810
-#define FAC_ODD_THRESHOLD                   28
+#define FAC_DSC_THRESHOLD                 1005
+#define FAC_ODD_THRESHOLD                   46
diff -r ebc3597af052 -r 18070b739e1d mpn/x86_64/core2/gmp-mparam.h
--- a/mpn/x86_64/core2/gmp-mparam.h	Mon Sep 23 12:13:53 2013 +0200
+++ b/mpn/x86_64/core2/gmp-mparam.h	Tue Sep 24 12:55:05 2013 +0200
@@ -37,27 +37,27 @@
 
 #define MUL_TOOM22_THRESHOLD                23
 #define MUL_TOOM33_THRESHOLD                65
-#define MUL_TOOM44_THRESHOLD               112
-#define MUL_TOOM6H_THRESHOLD               222
-#define MUL_TOOM8H_THRESHOLD                 0  /* always */
+#define MUL_TOOM44_THRESHOLD               178
+#define MUL_TOOM6H_THRESHOLD               254
+#define MUL_TOOM8H_THRESHOLD               381
 
 #define MUL_TOOM32_TO_TOOM43_THRESHOLD      69
-#define MUL_TOOM32_TO_TOOM53_THRESHOLD     114
+#define MUL_TOOM32_TO_TOOM53_THRESHOLD     122
 #define MUL_TOOM42_TO_TOOM53_THRESHOLD      73
 #define MUL_TOOM42_TO_TOOM63_THRESHOLD      78
-#define MUL_TOOM43_TO_TOOM54_THRESHOLD     100
+#define MUL_TOOM43_TO_TOOM54_THRESHOLD     106
 
 #define SQR_BASECASE_THRESHOLD               0  /* always (native) */
 #define SQR_TOOM2_THRESHOLD                 28
-#define SQR_TOOM3_THRESHOLD                 97
+#define SQR_TOOM3_THRESHOLD                102
 #define SQR_TOOM4_THRESHOLD                160
 #define SQR_TOOM6_THRESHOLD                222
-#define SQR_TOOM8_THRESHOLD                296
+#define SQR_TOOM8_THRESHOLD                309
 
 #define MULMID_TOOM42_THRESHOLD             30
 
-#define MULMOD_BNM1_THRESHOLD               11
-#define SQRMOD_BNM1_THRESHOLD               13
+#define MULMOD_BNM1_THRESHOLD               12
+#define SQRMOD_BNM1_THRESHOLD               14
 
 #define MUL_FFT_MODF_THRESHOLD             380  /* k = 5 */
 #define MUL_FFT_TABLE3                                      \
@@ -115,38 +115,38 @@
 #define MULLO_MUL_N_THRESHOLD             9174
 
 #define DC_DIV_QR_THRESHOLD                 46
-#define DC_DIVAPPR_Q_THRESHOLD             158
-#define DC_BDIV_QR_THRESHOLD                62
-#define DC_BDIV_Q_THRESHOLD                122
+#define DC_DIVAPPR_Q_THRESHOLD             173
+#define DC_BDIV_QR_THRESHOLD                48
+#define DC_BDIV_Q_THRESHOLD                 96
 
 #define INV_MULMOD_BNM1_THRESHOLD           46
-#define INV_NEWTON_THRESHOLD               164
-#define INV_APPR_THRESHOLD                 155
+#define INV_NEWTON_THRESHOLD               157
+#define INV_APPR_THRESHOLD                 157
 
-#define BINV_NEWTON_THRESHOLD              214
-#define REDC_1_TO_REDC_2_THRESHOLD           3
+#define BINV_NEWTON_THRESHOLD              234
+#define REDC_1_TO_REDC_2_THRESHOLD          20
 #define REDC_2_TO_REDC_N_THRESHOLD          48
 
 #define MU_DIV_QR_THRESHOLD               1334
 #define MU_DIVAPPR_Q_THRESHOLD            1210
 #define MUPI_DIV_QR_THRESHOLD               73
-#define MU_BDIV_QR_THRESHOLD              1057
-#define MU_BDIV_Q_THRESHOLD               1210
+#define MU_BDIV_QR_THRESHOLD              1017
+#define MU_BDIV_Q_THRESHOLD               1187
 
-#define POWM_SEC_TABLE  2,68,122,580,1036
+#define POWM_SEC_TABLE  3,65,118,643,1036
 
 #define MATRIX22_STRASSEN_THRESHOLD         19
-#define HGCD_THRESHOLD                     133
-#define HGCD_APPR_THRESHOLD                152
-#define HGCD_REDUCE_THRESHOLD             2121
-#define GCD_DC_THRESHOLD                   419
+#define HGCD_THRESHOLD                     127
+#define HGCD_APPR_THRESHOLD                171
+#define HGCD_REDUCE_THRESHOLD             2205
+#define GCD_DC_THRESHOLD                   427
 #define GCDEXT_DC_THRESHOLD                342
 #define JACOBI_BASE_METHOD                   4
 
-#define GET_STR_DC_THRESHOLD                11
-#define GET_STR_PRECOMPUTE_THRESHOLD        21
+#define GET_STR_DC_THRESHOLD                12
+#define GET_STR_PRECOMPUTE_THRESHOLD        23
 #define SET_STR_DC_THRESHOLD               552
-#define SET_STR_PRECOMPUTE_THRESHOLD      1561
+#define SET_STR_PRECOMPUTE_THRESHOLD      1655
 
-#define FAC_DSC_THRESHOLD                  969
-#define FAC_ODD_THRESHOLD                   29
+#define FAC_DSC_THRESHOLD                  620
+#define FAC_ODD_THRESHOLD                    0  /* always */
diff -r ebc3597af052 -r 18070b739e1d mpn/x86_64/coreinhm/gmp-mparam.h
--- a/mpn/x86_64/coreinhm/gmp-mparam.h	Mon Sep 23 12:13:53 2013 +0200
+++ b/mpn/x86_64/coreinhm/gmp-mparam.h	Tue Sep 24 12:55:05 2013 +0200
@@ -37,7 +37,7 @@
 
 #define MUL_TOOM22_THRESHOLD                18
 #define MUL_TOOM33_THRESHOLD                59
-#define MUL_TOOM44_THRESHOLD               152
+#define MUL_TOOM44_THRESHOLD               166
 #define MUL_TOOM6H_THRESHOLD               226
 #define MUL_TOOM8H_THRESHOLD               296
 
@@ -51,100 +51,98 @@
 #define SQR_TOOM2_THRESHOLD                 28
 #define SQR_TOOM3_THRESHOLD                 97
 #define SQR_TOOM4_THRESHOLD                250
-#define SQR_TOOM6_THRESHOLD                351
-#define SQR_TOOM8_THRESHOLD                454
+#define SQR_TOOM6_THRESHOLD                318
+#define SQR_TOOM8_THRESHOLD                430
 
 #define MULMID_TOOM42_THRESHOLD             28
 
 #define MULMOD_BNM1_THRESHOLD               13
 #define SQRMOD_BNM1_THRESHOLD               15
 
-#define MUL_FFT_MODF_THRESHOLD             380  /* k = 5 */
+#define MUL_FFT_MODF_THRESHOLD             565  /* k = 5 */
 #define MUL_FFT_TABLE3                                      \
-  { {    380, 5}, {     19, 6}, {     10, 5}, {     21, 6}, \
+  { {    565, 5}, {     19, 6}, {     10, 5}, {     21, 6}, \
     {     21, 7}, {     11, 6}, {     23, 7}, {     21, 8}, \
-    {     11, 7}, {     24, 8}, {     13, 7}, {     27, 8}, \
-    {     17, 7}, {     35, 8}, {     21, 9}, {     11, 8}, \
+    {     11, 7}, {     25, 8}, {     13, 7}, {     27, 8}, \
+    {     15, 7}, {     31, 8}, {     21, 9}, {     11, 8}, \
+    {     27, 9}, {     15, 8}, {     35, 9}, {     19, 8}, \
+    {     39, 9}, {     23, 8}, {     47, 9}, {     27,10}, \
+    {     15, 9}, {     35, 8}, {     71, 9}, {     39,10}, \
+    {     23, 9}, {     51,11}, {     15,10}, {     31, 9}, \
+    {     67,10}, {     39, 9}, {     79,10}, {     47, 9}, \
+    {     95,11}, {     31,10}, {     79,11}, {     47,10}, \
+    {     95,12}, {     31,11}, {     63,10}, {    135,11}, \
+    {     79,10}, {    159, 9}, {    319,10}, {    167,11}, \
+    {     95,10}, {    191, 9}, {    383,11}, {    111,12}, \
+    {     63,11}, {    127, 9}, {    511,11}, {    143,10}, \
+    {    287, 9}, {    575,10}, {    303,11}, {    159,12}, \
+    {     95,10}, {    383, 9}, {    767,13}, {   8192,14}, \
+    {  16384,15}, {  32768,16}, {  65536,17}, { 131072,18}, \
+    { 262144,19}, { 524288,20}, {1048576,21}, {2097152,22}, \
+    {4194304,23}, {8388608,24} }
+#define MUL_FFT_TABLE3_SIZE 74
+#define MUL_FFT_THRESHOLD                 4736
+
+#define SQR_FFT_MODF_THRESHOLD             570  /* k = 5 */
+#define SQR_FFT_TABLE3                                      \
+  { {    570, 5}, {     19, 6}, {     10, 5}, {     21, 6}, \
+    {     21, 7}, {     11, 6}, {     23, 7}, {     21, 8}, \
+    {     11, 7}, {     25, 8}, {     13, 7}, {     27, 8}, \
+    {     15, 7}, {     31, 8}, {     21, 9}, {     11, 8}, \
     {     27, 9}, {     15, 8}, {     33, 9}, {     19, 8}, \
-    {     41, 9}, {     23, 8}, {     49, 9}, {     27,10}, \
-    {     15, 9}, {     39, 8}, {     79,10}, {     23, 9}, \
-    {     55,11}, {     15,10}, {     31, 9}, {     71,10}, \
-    {     39, 9}, {     87,10}, {     47, 9}, {     99,10}, \
-    {     55,11}, {     31,10}, {     87,11}, {     47,10}, \
-    {    103,12}, {     31,11}, {     63, 9}, {    255,10}, \
-    {    135,11}, {     79,10}, {    159, 9}, {    319,10}, \
-    {    167,11}, {     95,10}, {    191, 9}, {    383,11}, \
-    {    111,12}, {     63,11}, {    127,10}, {    255, 9}, \
-    {    511,10}, {    271,11}, {    143,10}, {    287, 9}, \
-    {    575,10}, {    303,11}, {    159,10}, {    319,12}, \
+    {     41, 9}, {     27,10}, {     15, 9}, {     39,10}, \
+    {     23, 9}, {     47,11}, {     15,10}, {     31, 9}, \
+    {     67,10}, {     39, 9}, {     79,10}, {     47,11}, \
+    {     31,10}, {     79,11}, {     47,10}, {     95,12}, \
+    {     31,11}, {     63,10}, {    127, 8}, {    511,11}, \
+    {     79, 9}, {    319,11}, {     95, 9}, {    383,12}, \
+    {     63,11}, {    127, 9}, {    511, 8}, {   1023, 9}, \
+    {    543,11}, {    143,10}, {    287, 9}, {    575,10}, \
+    {    303, 9}, {    607,10}, {    319, 9}, {    639,12}, \
     {     95,10}, {    383,13}, {   8192,14}, {  16384,15}, \
     {  32768,16}, {  65536,17}, { 131072,18}, { 262144,19}, \
     { 524288,20}, {1048576,21}, {2097152,22}, {4194304,23}, \
     {8388608,24} }
-#define MUL_FFT_TABLE3_SIZE 77
-#define MUL_FFT_THRESHOLD                 4224
-
-#define SQR_FFT_MODF_THRESHOLD             312  /* k = 5 */
-#define SQR_FFT_TABLE3                                      \
-  { {    312, 5}, {     19, 6}, {     10, 5}, {     21, 6}, \
-    {     21, 7}, {     11, 6}, {     23, 7}, {     21, 8}, \
-    {     11, 7}, {     24, 8}, {     13, 7}, {     27, 8}, \
-    {     15, 7}, {     31, 8}, {     21, 9}, {     11, 8}, \
-    {     27, 9}, {     15, 8}, {     35, 9}, {     19, 8}, \
-    {     41, 9}, {     23, 8}, {     47, 9}, {     27,10}, \
-    {     15, 9}, {     39,10}, {     23, 9}, {     51,11}, \
-    {     15,10}, {     31, 9}, {     67,10}, {     39, 9}, \
-    {     79,10}, {     47,11}, {     31,10}, {     79,11}, \
-    {     47,10}, {     95,12}, {     31,11}, {     63,10}, \
-    {    127, 9}, {    255,11}, {     79,10}, {    159, 9}, \
-    {    319,11}, {     95,10}, {    191, 9}, {    383,12}, \
-    {     63,11}, {    127, 9}, {    511,10}, {    271, 9}, \
-    {    543,11}, {    143,10}, {    287, 9}, {    575, 8}, \
-    {   1151,10}, {    303,11}, {    159,10}, {    319, 9}, \
-    {    639,12}, {     95,11}, {    191,10}, {    383,13}, \


More information about the gmp-commit mailing list