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

mercurial at gmplib.org mercurial at gmplib.org
Thu Feb 25 21:26:38 CET 2010


details:   /home/hgfiles/gmp/rev/ddf36abbdf96
changeset: 13448:ddf36abbdf96
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Feb 25 19:50:29 2010 +0100
description:
Retune.

details:   /home/hgfiles/gmp/rev/0265f537da99
changeset: 13449:0265f537da99
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Feb 25 19:59:13 2010 +0100
description:
Retune.

details:   /home/hgfiles/gmp/rev/641a29fdba1e
changeset: 13450:641a29fdba1e
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Feb 25 19:59:42 2010 +0100
description:
Retune.

details:   /home/hgfiles/gmp/rev/297d5629709b
changeset: 13451:297d5629709b
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Feb 25 20:01:14 2010 +0100
description:
Retune.

details:   /home/hgfiles/gmp/rev/0b44b66f5b14
changeset: 13452:0b44b66f5b14
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Feb 25 20:04:45 2010 +0100
description:
Retune.

details:   /home/hgfiles/gmp/rev/0c71d13e356c
changeset: 13453:0c71d13e356c
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Feb 25 20:08:49 2010 +0100
description:
Retune.

details:   /home/hgfiles/gmp/rev/96c57cbeddbe
changeset: 13454:96c57cbeddbe
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Feb 25 20:10:28 2010 +0100
description:
Retune.

details:   /home/hgfiles/gmp/rev/14bbba19fe5f
changeset: 13455:14bbba19fe5f
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Feb 25 20:11:46 2010 +0100
description:
Retune.

details:   /home/hgfiles/gmp/rev/548190bc2207
changeset: 13456:548190bc2207
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Feb 25 20:14:50 2010 +0100
description:
Retune.

details:   /home/hgfiles/gmp/rev/7163e3691ddd
changeset: 13457:7163e3691ddd
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Feb 25 20:15:40 2010 +0100
description:
Retune.

details:   /home/hgfiles/gmp/rev/7837cc230a7d
changeset: 13458:7837cc230a7d
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Feb 25 20:17:33 2010 +0100
description:
Retune.

details:   /home/hgfiles/gmp/rev/279f6d074107
changeset: 13459:279f6d074107
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Feb 25 20:18:47 2010 +0100
description:
Retune.

details:   /home/hgfiles/gmp/rev/a4923df3a482
changeset: 13460:a4923df3a482
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Feb 25 21:25:53 2010 +0100
description:
Make "corei" default for unrecognised Intel P6 CPUs.

details:   /home/hgfiles/gmp/rev/7f50d4ccfd05
changeset: 13461:7f50d4ccfd05
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Feb 25 21:26:35 2010 +0100
description:
Trivial merge.

diffstat:

 ChangeLog                            |   7 +++++++
 config.guess                         |   1 +
 mpn/alpha/ev5/gmp-mparam.h           |  14 +++++++-------
 mpn/alpha/ev6/gmp-mparam.h           |   2 +-
 mpn/ia64/gmp-mparam.h                |   2 +-
 mpn/powerpc32/750/gmp-mparam.h       |   2 +-
 mpn/powerpc32/gmp-mparam.h           |   2 +-
 mpn/powerpc64/mode64/p3/gmp-mparam.h |  14 +++++++-------
 mpn/x86/k7/gmp-mparam.h              |   4 ++--
 mpn/x86/p6/mmx/gmp-mparam.h          |   2 +-
 mpn/x86_64/core2/gmp-mparam.h        |  14 +++++++-------
 mpn/x86_64/corei/gmp-mparam.h        |  10 +++++-----
 mpn/x86_64/gmp-mparam.h              |   4 ++--
 mpn/x86_64/pentium4/gmp-mparam.h     |   8 ++++----
 tests/devel/try.c                    |  18 ++++++++++++------
 tests/refmpz.c                       |   9 ++++-----
 16 files changed, 63 insertions(+), 50 deletions(-)

diffs (truncated from 365 to 300 lines):

diff -r 31be64b87c70 -r 7f50d4ccfd05 ChangeLog
--- a/ChangeLog	Thu Feb 25 19:26:01 2010 +0100
+++ b/ChangeLog	Thu Feb 25 21:26:35 2010 +0100
@@ -1,5 +1,10 @@
 2010-02-25  Niels Möller  <nisse at lysator.liu.se>
 
+	* tests/devel/try.c (param_init, call): Don't pass negative values
+	for the second argument to mpz_jacobi and refmpz_jacobi.
+
+	* tests/refmpz.c (refmpz_jacobi): Require that b is odd and positive.
+
 	* tests/devel/try.c (param_init): Support mpz_legendre.
 	(choice_array): Added mpz_kronecker (apparently forgotten) and
 	mpz_legendre.
@@ -10,6 +15,8 @@
 
 2010-02-25  Torbjorn Granlund  <tege at gmplib.org>
 
+	* config.guess: Make "corei" default for unrecognised Intel P6 CPUs.
+
 	* tests/mpz/t-perfpow.c (check_random): Use mp_limb_t type for limb
 	variables.
 
diff -r 31be64b87c70 -r 7f50d4ccfd05 config.guess
--- a/config.guess	Thu Feb 25 19:26:01 2010 +0100
+++ b/config.guess	Thu Feb 25 21:26:35 2010 +0100
@@ -744,6 +744,7 @@
 	  else if (model == 0x27)	modelstr = "atom";  /* Saltwell */
 	  else if (model == 0x2c)	modelstr = "corei"; /* WSM Gulftown */
 	  else if (model == 0x2e)	modelstr = "corei"; /* NHM Beckton */
+	  else modelstr = "corei"; /* default */
 	  break;
 	case 15:
 	  modelstr = "pentium4";
diff -r 31be64b87c70 -r 7f50d4ccfd05 mpn/alpha/ev5/gmp-mparam.h
--- a/mpn/alpha/ev5/gmp-mparam.h	Thu Feb 25 19:26:01 2010 +0100
+++ b/mpn/alpha/ev5/gmp-mparam.h	Thu Feb 25 21:26:35 2010 +0100
@@ -28,14 +28,14 @@
 #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         32
-#define MOD_1U_TO_MOD_1_1_THRESHOLD          2
-#define MOD_1_1_TO_MOD_1_2_THRESHOLD         7
-#define MOD_1_2_TO_MOD_1_4_THRESHOLD        18
-#define PREINV_MOD_1_TO_MOD_1_THRESHOLD     73
+#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  /* preinv always */
 #define DIVEXACT_1_THRESHOLD                 0  /* always */
-#define BMOD_1_TO_MOD_1_THRESHOLD           87
+#define BMOD_1_TO_MOD_1_THRESHOLD        MP_SIZE_T_MAX  /* never */
 
 #define MUL_TOOM22_THRESHOLD                16
 #define MUL_TOOM33_THRESHOLD                53
@@ -147,7 +147,7 @@
 #define DC_BDIV_QR_THRESHOLD                51
 #define DC_BDIV_Q_THRESHOLD                120
 
-#define INV_MULMOD_BNM1_THRESHOLD          100
+#define INV_MULMOD_BNM1_THRESHOLD           34
 #define INV_NEWTON_THRESHOLD               188
 #define INV_APPR_THRESHOLD                 189
 
diff -r 31be64b87c70 -r 7f50d4ccfd05 mpn/alpha/ev6/gmp-mparam.h
--- a/mpn/alpha/ev6/gmp-mparam.h	Thu Feb 25 19:26:01 2010 +0100
+++ b/mpn/alpha/ev6/gmp-mparam.h	Thu Feb 25 21:26:35 2010 +0100
@@ -156,7 +156,7 @@
 #define DC_BDIV_QR_THRESHOLD               110
 #define DC_BDIV_Q_THRESHOLD                318
 
-#define INV_MULMOD_BNM1_THRESHOLD          109
+#define INV_MULMOD_BNM1_THRESHOLD           75
 #define INV_NEWTON_THRESHOLD               390
 #define INV_APPR_THRESHOLD                 372
 
diff -r 31be64b87c70 -r 7f50d4ccfd05 mpn/ia64/gmp-mparam.h
--- a/mpn/ia64/gmp-mparam.h	Thu Feb 25 19:26:01 2010 +0100
+++ b/mpn/ia64/gmp-mparam.h	Thu Feb 25 21:26:35 2010 +0100
@@ -181,7 +181,7 @@
 #define DC_BDIV_QR_THRESHOLD               117
 #define DC_BDIV_Q_THRESHOLD                292
 
-#define INV_MULMOD_BNM1_THRESHOLD          103
+#define INV_MULMOD_BNM1_THRESHOLD           90
 #define INV_NEWTON_THRESHOLD               178
 #define INV_APPR_THRESHOLD                 179
 
diff -r 31be64b87c70 -r 7f50d4ccfd05 mpn/powerpc32/750/gmp-mparam.h
--- a/mpn/powerpc32/750/gmp-mparam.h	Thu Feb 25 19:26:01 2010 +0100
+++ b/mpn/powerpc32/750/gmp-mparam.h	Thu Feb 25 21:26:35 2010 +0100
@@ -156,7 +156,7 @@
 #define DC_BDIV_QR_THRESHOLD                35
 #define DC_BDIV_Q_THRESHOLD                 88
 
-#define INV_MULMOD_BNM1_THRESHOLD           76
+#define INV_MULMOD_BNM1_THRESHOLD           42
 #define INV_NEWTON_THRESHOLD               149
 #define INV_APPR_THRESHOLD                 125
 
diff -r 31be64b87c70 -r 7f50d4ccfd05 mpn/powerpc32/gmp-mparam.h
--- a/mpn/powerpc32/gmp-mparam.h	Thu Feb 25 19:26:01 2010 +0100
+++ b/mpn/powerpc32/gmp-mparam.h	Thu Feb 25 21:26:35 2010 +0100
@@ -166,7 +166,7 @@
 #define DC_BDIV_QR_THRESHOLD                55
 #define DC_BDIV_Q_THRESHOLD                124
 
-#define INV_MULMOD_BNM1_THRESHOLD          108
+#define INV_MULMOD_BNM1_THRESHOLD           42
 #define INV_NEWTON_THRESHOLD               179
 #define INV_APPR_THRESHOLD                 166
 
diff -r 31be64b87c70 -r 7f50d4ccfd05 mpn/powerpc64/mode64/p3/gmp-mparam.h
--- a/mpn/powerpc64/mode64/p3/gmp-mparam.h	Thu Feb 25 19:26:01 2010 +0100
+++ b/mpn/powerpc64/mode64/p3/gmp-mparam.h	Thu Feb 25 21:26:35 2010 +0100
@@ -132,22 +132,22 @@
 #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           52
+#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
-#define GCD_DC_THRESHOLD                   162
+#define GCD_DC_THRESHOLD                   150
 #define GCDEXT_DC_THRESHOLD                124
 #define JACOBI_BASE_METHOD                   1
 
diff -r 31be64b87c70 -r 7f50d4ccfd05 mpn/x86/k7/gmp-mparam.h
--- a/mpn/x86/k7/gmp-mparam.h	Thu Feb 25 19:26:01 2010 +0100
+++ b/mpn/x86/k7/gmp-mparam.h	Thu Feb 25 21:26:35 2010 +0100
@@ -160,7 +160,7 @@
 #define DC_BDIV_QR_THRESHOLD                82
 #define DC_BDIV_Q_THRESHOLD                268
 
-#define INV_MULMOD_BNM1_THRESHOLD           75
+#define INV_MULMOD_BNM1_THRESHOLD           54
 #define INV_NEWTON_THRESHOLD               300
 #define INV_APPR_THRESHOLD                 303
 
@@ -181,5 +181,5 @@
 
 #define GET_STR_DC_THRESHOLD                17
 #define GET_STR_PRECOMPUTE_THRESHOLD        34
-#define SET_STR_DC_THRESHOLD               542
+#define SET_STR_DC_THRESHOLD               834
 #define SET_STR_PRECOMPUTE_THRESHOLD      1615
diff -r 31be64b87c70 -r 7f50d4ccfd05 mpn/x86/p6/mmx/gmp-mparam.h
--- a/mpn/x86/p6/mmx/gmp-mparam.h	Thu Feb 25 19:26:01 2010 +0100
+++ b/mpn/x86/p6/mmx/gmp-mparam.h	Thu Feb 25 21:26:35 2010 +0100
@@ -162,7 +162,7 @@
 #define DC_BDIV_QR_THRESHOLD                76
 #define DC_BDIV_Q_THRESHOLD                175
 
-#define INV_MULMOD_BNM1_THRESHOLD           82
+#define INV_MULMOD_BNM1_THRESHOLD           42
 #define INV_NEWTON_THRESHOLD               268
 #define INV_APPR_THRESHOLD                 250
 
diff -r 31be64b87c70 -r 7f50d4ccfd05 mpn/x86_64/core2/gmp-mparam.h
--- a/mpn/x86_64/core2/gmp-mparam.h	Thu Feb 25 19:26:01 2010 +0100
+++ b/mpn/x86_64/core2/gmp-mparam.h	Thu Feb 25 21:26:35 2010 +0100
@@ -36,7 +36,7 @@
 
 #define MUL_TOOM22_THRESHOLD                23
 #define MUL_TOOM33_THRESHOLD                65
-#define MUL_TOOM44_THRESHOLD               183
+#define MUL_TOOM44_THRESHOLD               106
 #define MUL_TOOM6H_THRESHOLD               254
 #define MUL_TOOM8H_THRESHOLD               381
 
@@ -47,7 +47,7 @@
 
 #define SQR_BASECASE_THRESHOLD               0  /* always (native) */
 #define SQR_TOOM2_THRESHOLD                 26
-#define SQR_TOOM3_THRESHOLD                 97
+#define SQR_TOOM3_THRESHOLD                 85
 #define SQR_TOOM4_THRESHOLD                148
 #define SQR_TOOM6_THRESHOLD                270
 #define SQR_TOOM8_THRESHOLD                296
@@ -151,7 +151,7 @@
     { 262144,19}, { 524288,20}, {1048576,21}, {2097152,22}, \
     {4194304,23}, {8388608,24} }
 #define SQR_FFT_TABLE3_SIZE 178
-#define SQR_FFT_THRESHOLD                 3520
+#define SQR_FFT_THRESHOLD                 2752
 
 #define MULLO_BASECASE_THRESHOLD             3
 #define MULLO_DC_THRESHOLD                  20
@@ -162,11 +162,11 @@
 #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           50
+#define INV_NEWTON_THRESHOLD               172
+#define INV_APPR_THRESHOLD                 173
 
-#define BINV_NEWTON_THRESHOLD              260
+#define BINV_NEWTON_THRESHOLD              234
 #define REDC_1_TO_REDC_2_THRESHOLD          10
 #define REDC_2_TO_REDC_N_THRESHOLD          63
 
diff -r 31be64b87c70 -r 7f50d4ccfd05 mpn/x86_64/corei/gmp-mparam.h
--- a/mpn/x86_64/corei/gmp-mparam.h	Thu Feb 25 19:26:01 2010 +0100
+++ b/mpn/x86_64/corei/gmp-mparam.h	Thu Feb 25 21:26:35 2010 +0100
@@ -48,12 +48,12 @@
 #define SQR_BASECASE_THRESHOLD               0  /* always (native) */
 #define SQR_TOOM2_THRESHOLD                 30
 #define SQR_TOOM3_THRESHOLD                105
-#define SQR_TOOM4_THRESHOLD                250
-#define SQR_TOOM6_THRESHOLD                366
+#define SQR_TOOM4_THRESHOLD                178
+#define SQR_TOOM6_THRESHOLD                318
 #define SQR_TOOM8_THRESHOLD                502
 
 #define MULMOD_BNM1_THRESHOLD               11
-#define SQRMOD_BNM1_THRESHOLD               16
+#define SQRMOD_BNM1_THRESHOLD               13
 
 #define MUL_FFT_MODF_THRESHOLD             396  /* k = 5 */
 #define MUL_FFT_TABLE3                                      \
@@ -169,7 +169,7 @@
 #define DC_BDIV_QR_THRESHOLD                32
 #define DC_BDIV_Q_THRESHOLD                 68
 
-#define INV_MULMOD_BNM1_THRESHOLD          124
+#define INV_MULMOD_BNM1_THRESHOLD           39
 #define INV_NEWTON_THRESHOLD               199
 #define INV_APPR_THRESHOLD                 154
 
@@ -191,5 +191,5 @@
 
 #define GET_STR_DC_THRESHOLD                13
 #define GET_STR_PRECOMPUTE_THRESHOLD        23
-#define SET_STR_DC_THRESHOLD               226
+#define SET_STR_DC_THRESHOLD               552
 #define SET_STR_PRECOMPUTE_THRESHOLD      1660
diff -r 31be64b87c70 -r 7f50d4ccfd05 mpn/x86_64/gmp-mparam.h
--- a/mpn/x86_64/gmp-mparam.h	Thu Feb 25 19:26:01 2010 +0100
+++ b/mpn/x86_64/gmp-mparam.h	Thu Feb 25 21:26:35 2010 +0100
@@ -171,11 +171,11 @@
 #define DC_BDIV_QR_THRESHOLD                52
 #define DC_BDIV_Q_THRESHOLD                152
 
-#define INV_MULMOD_BNM1_THRESHOLD          174
+#define INV_MULMOD_BNM1_THRESHOLD           66
 #define INV_NEWTON_THRESHOLD               252
 #define INV_APPR_THRESHOLD                 250
 
-#define BINV_NEWTON_THRESHOLD              345
+#define BINV_NEWTON_THRESHOLD              262
 #define REDC_1_TO_REDC_2_THRESHOLD          50
 #define REDC_2_TO_REDC_N_THRESHOLD          79
 
diff -r 31be64b87c70 -r 7f50d4ccfd05 mpn/x86_64/pentium4/gmp-mparam.h
--- a/mpn/x86_64/pentium4/gmp-mparam.h	Thu Feb 25 19:26:01 2010 +0100
+++ b/mpn/x86_64/pentium4/gmp-mparam.h	Thu Feb 25 21:26:35 2010 +0100
@@ -192,11 +192,11 @@
 #define DC_BDIV_QR_THRESHOLD                31
 #define DC_BDIV_Q_THRESHOLD                 60
 
-#define INV_MULMOD_BNM1_THRESHOLD          141
-#define INV_NEWTON_THRESHOLD               266
+#define INV_MULMOD_BNM1_THRESHOLD           22
+#define INV_NEWTON_THRESHOLD               226
 #define INV_APPR_THRESHOLD                 110
 
-#define BINV_NEWTON_THRESHOLD              262
+#define BINV_NEWTON_THRESHOLD              228
 #define REDC_1_TO_REDC_2_THRESHOLD          15
 #define REDC_2_TO_REDC_N_THRESHOLD          47
 
@@ -214,5 +214,5 @@
 
 #define GET_STR_DC_THRESHOLD                12
 #define GET_STR_PRECOMPUTE_THRESHOLD        23
-#define SET_STR_DC_THRESHOLD               572


More information about the gmp-commit mailing list