[Gmp-commit] /home/hgfiles/gmp: 5 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Sun Jan 30 21:44:17 CET 2011


details:   /home/hgfiles/gmp/rev/63e8ecdaad85
changeset: 13793:63e8ecdaad85
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Jan 30 19:40:19 2011 +0100
description:
Retune.

details:   /home/hgfiles/gmp/rev/25e22ad4cb62
changeset: 13794:25e22ad4cb62
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Jan 30 19:45:29 2011 +0100
description:
Retune.

details:   /home/hgfiles/gmp/rev/730567d6606e
changeset: 13795:730567d6606e
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Jan 30 19:48:12 2011 +0100
description:
Retune.

details:   /home/hgfiles/gmp/rev/37b16766914d
changeset: 13796:37b16766914d
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Jan 30 21:42:55 2011 +0100
description:
Retune.

details:   /home/hgfiles/gmp/rev/e8c40dbb74bc
changeset: 13797:e8c40dbb74bc
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Jan 30 21:44:08 2011 +0100
description:
*** empty log message ***

diffstat:

 ChangeLog                             |    5 +
 mpn/powerpc64/mode64/p6/gmp-mparam.h  |    8 +-
 mpn/sparc32/v9/gmp-mparam.h           |  103 +++++++++++++++++++--------------
 mpn/sparc64/ultrasparct1/gmp-mparam.h |   20 +++---
 mpn/x86_64/gmp-mparam.h               |   20 +++---
 5 files changed, 89 insertions(+), 67 deletions(-)

diffs (truncated from 306 to 300 lines):

diff -r c4a3de2f12d3 -r e8c40dbb74bc ChangeLog
--- a/ChangeLog	Sun Jan 30 19:23:01 2011 +0100
+++ b/ChangeLog	Sun Jan 30 21:44:08 2011 +0100
@@ -1,3 +1,8 @@
+2011-01-30  Torbjorn Granlund  <tege at gmplib.org>
+
+	* configure.in: Support x86/geode.
+	* mpn/x86/geode/gmp-mparam.h: New file.
+
 2011-01-29 Marco Bodrato <bodrato at mail.dm.unipi.it>
 
 	* mpn/x86/atom/addlsh1_n.asm: Removed.
diff -r c4a3de2f12d3 -r e8c40dbb74bc mpn/powerpc64/mode64/p6/gmp-mparam.h
--- a/mpn/powerpc64/mode64/p6/gmp-mparam.h	Sun Jan 30 19:23:01 2011 +0100
+++ b/mpn/powerpc64/mode64/p6/gmp-mparam.h	Sun Jan 30 21:44:08 2011 +0100
@@ -45,12 +45,12 @@
 #define MUL_TOOM42_TO_TOOM53_THRESHOLD      73
 #define MUL_TOOM42_TO_TOOM63_THRESHOLD      66
 
-#define SQR_BASECASE_THRESHOLD              12
+#define SQR_BASECASE_THRESHOLD               9
 #define SQR_TOOM2_THRESHOLD                 30
 #define SQR_TOOM3_THRESHOLD                 53
 #define SQR_TOOM4_THRESHOLD                148
-#define SQR_TOOM6_THRESHOLD                206
-#define SQR_TOOM8_THRESHOLD                296
+#define SQR_TOOM6_THRESHOLD                226
+#define SQR_TOOM8_THRESHOLD                430
 
 #define MULMOD_BNM1_THRESHOLD               14
 #define SQRMOD_BNM1_THRESHOLD               14
@@ -107,7 +107,7 @@
 
 #define MULLO_BASECASE_THRESHOLD             7
 #define MULLO_DC_THRESHOLD                  28
-#define MULLO_MUL_N_THRESHOLD             6633
+#define MULLO_MUL_N_THRESHOLD             2742
 
 #define DC_DIV_QR_THRESHOLD                 32
 #define DC_DIVAPPR_Q_THRESHOLD             112
diff -r c4a3de2f12d3 -r e8c40dbb74bc mpn/sparc32/v9/gmp-mparam.h
--- a/mpn/sparc32/v9/gmp-mparam.h	Sun Jan 30 19:23:01 2011 +0100
+++ b/mpn/sparc32/v9/gmp-mparam.h	Sun Jan 30 21:44:08 2011 +0100
@@ -1,7 +1,7 @@
 /* SPARC v9 32-bit gmp-mparam.h -- Compiler/machine parameter header file.
 
-Copyright 1991, 1993, 1994, 1999, 2000, 2001, 2002, 2004, 2009, 2010 Free
-Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1999, 2000, 2001, 2002, 2004, 2009, 2010, 2011
+Free Software Foundation, Inc.
 
 This file is part of the GNU MP Library.
 
@@ -22,77 +22,94 @@
 #define BYTES_PER_MP_LIMB 4
 
 #define DIVREM_1_NORM_THRESHOLD              3
-#define DIVREM_1_UNNORM_THRESHOLD            5
+#define DIVREM_1_UNNORM_THRESHOLD        MP_SIZE_T_MAX  /* never */
 #define MOD_1_NORM_THRESHOLD                 4
-#define MOD_1_UNNORM_THRESHOLD               7
+#define MOD_1_UNNORM_THRESHOLD              13
 #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 MOD_1U_TO_MOD_1_1_THRESHOLD         10
+#define MOD_1_1_TO_MOD_1_2_THRESHOLD         0  /* never mpn_mod_1_1p */
+#define MOD_1_2_TO_MOD_1_4_THRESHOLD        28
 #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 BMOD_1_TO_MOD_1_THRESHOLD           16
 
-#define MUL_TOOM22_THRESHOLD                32
-#define MUL_TOOM33_THRESHOLD                96
-#define MUL_TOOM44_THRESHOLD               143
-#define MUL_TOOM6H_THRESHOLD               216
-#define MUL_TOOM8H_THRESHOLD               494
+#define MUL_TOOM22_THRESHOLD                28
+#define MUL_TOOM33_THRESHOLD                93
+#define MUL_TOOM44_THRESHOLD               166
+#define MUL_TOOM6H_THRESHOLD               204
+#define MUL_TOOM8H_THRESHOLD               434
 
-#define MUL_TOOM32_TO_TOOM43_THRESHOLD      96
-#define MUL_TOOM32_TO_TOOM53_THRESHOLD     145
-#define MUL_TOOM42_TO_TOOM53_THRESHOLD      97
-#define MUL_TOOM42_TO_TOOM63_THRESHOLD      92
+#define MUL_TOOM32_TO_TOOM43_THRESHOLD     102
+#define MUL_TOOM32_TO_TOOM53_THRESHOLD     160
+#define MUL_TOOM42_TO_TOOM53_THRESHOLD     114
+#define MUL_TOOM42_TO_TOOM63_THRESHOLD     101
 
-#define SQR_BASECASE_THRESHOLD              12
+#define SQR_BASECASE_THRESHOLD               8
 #define SQR_TOOM2_THRESHOLD                 62
-#define SQR_TOOM3_THRESHOLD                103
+#define SQR_TOOM3_THRESHOLD                110
 #define SQR_TOOM4_THRESHOLD                274
-#define SQR_TOOM6_THRESHOLD                274
-#define SQR_TOOM8_THRESHOLD                542
+#define SQR_TOOM6_THRESHOLD                  0
+#define SQR_TOOM8_THRESHOLD                567
 
 #define MULMOD_BNM1_THRESHOLD               14
-#define SQRMOD_BNM1_THRESHOLD               21
+#define SQRMOD_BNM1_THRESHOLD               20
 
-#define MUL_FFT_TABLE  { 272, 736, 1152, 3584, 10240, 24576, 98304, 917504, 0 }
-#define MUL_FFT_MODF_THRESHOLD             248
+#define MUL_FFT_MODF_THRESHOLD             240  /* k = 5 */
+#define MUL_FFT_TABLE3                                      \
+  { {    240, 5}, {     19, 6}, {     17, 7}, {      9, 6}, \
+    {     20, 7}, {     11, 6}, {     23, 7}, {     15, 6}, \
+    {     31, 7}, {     25, 8}, {     15, 7}, {     33, 8}, \
+    {     19, 7}, {     39, 8}, {     23, 7}, {     53, 8}, \
+    {     27, 9}, {     15, 8}, {     31, 7}, {     65, 8}, \
+    {     35, 7}, {     71, 8}, {     39, 9}, {    512,10}, \
+    {   1024,11}, {   2048,12}, {   4096,13}, {   8192,14}, \
+    {  16384,15}, {  32768,16} }
+#define MUL_FFT_TABLE3_SIZE 30
 #define MUL_FFT_THRESHOLD                 2112
 
-#define SQR_FFT_TABLE  { 336, 800, 1408, 3584, 10240, 24576, 98304, 393216, 0 }
-#define SQR_FFT_MODF_THRESHOLD             248
-#define SQR_FFT_THRESHOLD                 2112
+#define SQR_FFT_MODF_THRESHOLD             248  /* k = 5 */
+#define SQR_FFT_TABLE3                                      \
+  { {    248, 5}, {      8, 4}, {     17, 5}, {     19, 6}, \
+    {     10, 5}, {     21, 6}, {     20, 7}, {     11, 6}, \
+    {     23, 7}, {     21, 8}, {     11, 7}, {     27, 8}, \
+    {     15, 7}, {     33, 8}, {     19, 7}, {     39, 8}, \
+    {     23, 7}, {     47, 8}, {     27, 9}, {     15, 8}, \
+    {     31, 7}, {     63, 8}, {     35, 7}, {     73, 8}, \
+    {    256, 9}, {    512,10}, {   1024,11}, {   2048,12}, \
+    {   4096,13}, {   8192,14}, {  16384,15}, {  32768,16} }
+#define SQR_FFT_TABLE3_SIZE 32
+#define SQR_FFT_THRESHOLD                 1856
 
 #define MULLO_BASECASE_THRESHOLD             0  /* always */
 #define MULLO_DC_THRESHOLD                 106
-#define MULLO_MUL_N_THRESHOLD             3493
+#define MULLO_MUL_N_THRESHOLD              827
 
 #define DC_DIV_QR_THRESHOLD                123
 #define DC_DIVAPPR_Q_THRESHOLD             396
-#define DC_BDIV_QR_THRESHOLD               121
+#define DC_BDIV_QR_THRESHOLD               111
 #define DC_BDIV_Q_THRESHOLD                280
 
-#define INV_MULMOD_BNM1_THRESHOLD           62
+#define INV_MULMOD_BNM1_THRESHOLD           54
 #define INV_NEWTON_THRESHOLD               351
-#define INV_APPR_THRESHOLD                 357
+#define INV_APPR_THRESHOLD                 351
 
 #define BINV_NEWTON_THRESHOLD              324
-#define REDC_1_TO_REDC_N_THRESHOLD          78
+#define REDC_1_TO_REDC_N_THRESHOLD          94
 
-#define MU_DIV_QR_THRESHOLD               1895
-#define MU_DIVAPPR_Q_THRESHOLD            1895
-#define MUPI_DIV_QR_THRESHOLD              122
-#define MU_BDIV_QR_THRESHOLD               872
-#define MU_BDIV_Q_THRESHOLD               2801
+#define MU_DIV_QR_THRESHOLD                541
+#define MU_DIVAPPR_Q_THRESHOLD             792
+#define MUPI_DIV_QR_THRESHOLD              132
+#define MU_BDIV_QR_THRESHOLD               606
+#define MU_BDIV_Q_THRESHOLD                734
 
 #define MATRIX22_STRASSEN_THRESHOLD         13
-#define HGCD_THRESHOLD                     144
-#define GCD_DC_THRESHOLD                   630
+#define HGCD_THRESHOLD                     148
+#define GCD_DC_THRESHOLD                   386
 #define GCDEXT_DC_THRESHOLD                416
-#define JACOBI_BASE_METHOD                   2
+#define JACOBI_BASE_METHOD                   4
 
-#define GET_STR_DC_THRESHOLD                 9
-#define GET_STR_PRECOMPUTE_THRESHOLD        17
+#define GET_STR_DC_THRESHOLD                12
+#define GET_STR_PRECOMPUTE_THRESHOLD        18
 #define SET_STR_DC_THRESHOLD               537
 #define SET_STR_PRECOMPUTE_THRESHOLD      1576
diff -r c4a3de2f12d3 -r e8c40dbb74bc mpn/sparc64/ultrasparct1/gmp-mparam.h
--- a/mpn/sparc64/ultrasparct1/gmp-mparam.h	Sun Jan 30 19:23:01 2011 +0100
+++ b/mpn/sparc64/ultrasparct1/gmp-mparam.h	Sun Jan 30 21:44:08 2011 +0100
@@ -37,7 +37,7 @@
 #define BMOD_1_TO_MOD_1_THRESHOLD        MP_SIZE_T_MAX  /* never */
 
 #define MUL_TOOM22_THRESHOLD                 8
-#define MUL_TOOM33_THRESHOLD                65
+#define MUL_TOOM33_THRESHOLD                51
 #define MUL_TOOM44_THRESHOLD                97
 #define MUL_TOOM6H_THRESHOLD               125
 #define MUL_TOOM8H_THRESHOLD               187
@@ -48,11 +48,11 @@
 #define MUL_TOOM42_TO_TOOM63_THRESHOLD      50
 
 #define SQR_BASECASE_THRESHOLD               0  /* always */
-#define SQR_TOOM2_THRESHOLD                 14
-#define SQR_TOOM3_THRESHOLD                 74
+#define SQR_TOOM2_THRESHOLD                 16
+#define SQR_TOOM3_THRESHOLD                 57
 #define SQR_TOOM4_THRESHOLD                133
 #define SQR_TOOM6_THRESHOLD                156
-#define SQR_TOOM8_THRESHOLD                236
+#define SQR_TOOM8_THRESHOLD                260
 
 #define MULMOD_BNM1_THRESHOLD                7
 #define SQRMOD_BNM1_THRESHOLD                7
@@ -74,7 +74,7 @@
     { 524288,20}, {1048576,21}, {2097152,22}, {4194304,23}, \
     {8388608,24} }
 #define MUL_FFT_TABLE3_SIZE 53
-#define MUL_FFT_THRESHOLD                 2368
+#define MUL_FFT_THRESHOLD                 1728
 
 
 #define SQR_FFT_MODF_THRESHOLD             148  /* k = 5 */
@@ -99,23 +99,23 @@
 
 #define MULLO_BASECASE_THRESHOLD             0  /* always */
 #define MULLO_DC_THRESHOLD                  28
-#define MULLO_MUL_N_THRESHOLD             4392
+#define MULLO_MUL_N_THRESHOLD             3176
 
 #define DC_DIV_QR_THRESHOLD                 27
 #define DC_DIVAPPR_Q_THRESHOLD             107
 #define DC_BDIV_QR_THRESHOLD                27
 #define DC_BDIV_Q_THRESHOLD                 62
 
-#define INV_MULMOD_BNM1_THRESHOLD           14
+#define INV_MULMOD_BNM1_THRESHOLD           22
 #define INV_NEWTON_THRESHOLD               163
 #define INV_APPR_THRESHOLD                 117
 
 #define BINV_NEWTON_THRESHOLD              166
 #define REDC_1_TO_REDC_N_THRESHOLD          32
 
-#define MU_DIV_QR_THRESHOLD                630
+#define MU_DIV_QR_THRESHOLD                720
 #define MU_DIVAPPR_Q_THRESHOLD             734
-#define MUPI_DIV_QR_THRESHOLD               81
+#define MUPI_DIV_QR_THRESHOLD               67
 #define MU_BDIV_QR_THRESHOLD               562
 #define MU_BDIV_Q_THRESHOLD                734
 
@@ -127,5 +127,5 @@
 
 #define GET_STR_DC_THRESHOLD                20
 #define GET_STR_PRECOMPUTE_THRESHOLD        39
-#define SET_STR_DC_THRESHOLD               418
+#define SET_STR_DC_THRESHOLD               458
 #define SET_STR_PRECOMPUTE_THRESHOLD       964
diff -r c4a3de2f12d3 -r e8c40dbb74bc mpn/x86_64/gmp-mparam.h
--- a/mpn/x86_64/gmp-mparam.h	Sun Jan 30 19:23:01 2011 +0100
+++ b/mpn/x86_64/gmp-mparam.h	Sun Jan 30 21:44:08 2011 +0100
@@ -46,10 +46,10 @@
 
 #define SQR_BASECASE_THRESHOLD               0  /* always (native) */
 #define SQR_TOOM2_THRESHOLD                 34
-#define SQR_TOOM3_THRESHOLD                117
-#define SQR_TOOM4_THRESHOLD                512
-#define SQR_TOOM6_THRESHOLD                686
-#define SQR_TOOM8_THRESHOLD                686
+#define SQR_TOOM3_THRESHOLD                114
+#define SQR_TOOM4_THRESHOLD                478
+#define SQR_TOOM6_THRESHOLD                562
+#define SQR_TOOM8_THRESHOLD                  0
 
 #define MULMOD_BNM1_THRESHOLD               17
 #define SQRMOD_BNM1_THRESHOLD               17
@@ -162,12 +162,12 @@
 #define SQR_FFT_TABLE3_SIZE 203
 #define SQR_FFT_THRESHOLD                 5248
 
-#define MULLO_BASECASE_THRESHOLD             9
-#define MULLO_DC_THRESHOLD                  29
-#define MULLO_MUL_N_THRESHOLD            14709
+#define MULLO_BASECASE_THRESHOLD             0  /* always */
+#define MULLO_DC_THRESHOLD                  35
+#define MULLO_MUL_N_THRESHOLD            15604
 
 #define DC_DIV_QR_THRESHOLD                 56
-#define DC_DIVAPPR_Q_THRESHOLD             270
+#define DC_DIVAPPR_Q_THRESHOLD             220
 #define DC_BDIV_QR_THRESHOLD                52
 #define DC_BDIV_Q_THRESHOLD                152
 
@@ -175,8 +175,8 @@
 #define INV_NEWTON_THRESHOLD               252
 #define INV_APPR_THRESHOLD                 250
 
-#define BINV_NEWTON_THRESHOLD              262


More information about the gmp-commit mailing list