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

mercurial at gmplib.org mercurial at gmplib.org
Sun Jan 3 07:54:29 CET 2010


details:   /home/hgfiles/gmp/rev/eae49c998644
changeset: 13310:eae49c998644
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Jan 03 07:53:28 2010 +0100
description:
(MUL_TO_MULMOD_BNM1_FOR_2NXN_THRESHOLD): Default to INV_MULMOD_BNM1_THRESHOLD/2 instead.

details:   /home/hgfiles/gmp/rev/3c0653082a4e
changeset: 13311:3c0653082a4e
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Jan 03 07:54:25 2010 +0100
description:
Retune.

diffstat:

 ChangeLog                    |   3 +++
 NEWS                         |   4 ++--
 gmp-impl.h                   |   2 +-
 mpn/x86_64/nano/gmp-mparam.h |  30 +++++++++++++++---------------
 4 files changed, 21 insertions(+), 18 deletions(-)

diffs (101 lines):

diff -r 0cef6d3da306 -r 3c0653082a4e ChangeLog
--- a/ChangeLog	Sun Jan 03 06:45:52 2010 +0100
+++ b/ChangeLog	Sun Jan 03 07:54:25 2010 +0100
@@ -1,5 +1,8 @@
 2010-01-03  Torbjorn Granlund  <tege at gmplib.org>
 
+	* gmp-impl.h (MUL_TO_MULMOD_BNM1_FOR_2NXN_THRESHOLD): Default to
+	INV_MULMOD_BNM1_THRESHOLD/2 instead.
+
 	* gmp-impl.h (INV_APPR_THRESHOLD, INV_MULMOD_BNM1_THRESHOLD): Default
 	here...
 	* mpn/generic/invert.c, mpn/generic/invertappr.c: ...not here.
diff -r 0cef6d3da306 -r 3c0653082a4e NEWS
--- a/NEWS	Sun Jan 03 06:45:52 2010 +0100
+++ b/NEWS	Sun Jan 03 07:54:25 2010 +0100
@@ -5,7 +5,7 @@
 in any medium, provided this notice is preserved.
 
 
-Changes between GMP version 4.3.X and 4.4.0.
+Changes between GMP version 4.3.X and 4.4.0
 
   BUGS FIXED
   * None (contains the same fixes as release 4.3.2).
@@ -64,7 +64,7 @@
     mpn_nior_n, mpn_xnor_n, mpn_andn_n, mpn_iorn_n, mpn_com, mpn_neg,
     mpn_copyi, mpn_copyd, mpn_zero.
 
-  * The function mpn_tdiv_qr now allows some argument overlap.
+  * The function mpn_tdiv_qr now allows certain argument overlap.
 
   * Support for fat binaries for 64-bit x86 processors has been added.
 
diff -r 0cef6d3da306 -r 3c0653082a4e gmp-impl.h
--- a/gmp-impl.h	Sun Jan 03 06:45:52 2010 +0100
+++ b/gmp-impl.h	Sun Jan 03 07:54:25 2010 +0100
@@ -1827,7 +1827,7 @@
 #endif
 
 #ifndef MUL_TO_MULMOD_BNM1_FOR_2NXN_THRESHOLD
-#define MUL_TO_MULMOD_BNM1_FOR_2NXN_THRESHOLD  INV_MULMOD_BNM1_THRESHOLD
+#define MUL_TO_MULMOD_BNM1_FOR_2NXN_THRESHOLD  (INV_MULMOD_BNM1_THRESHOLD/2)
 #endif
 
 #if HAVE_NATIVE_mpn_addmul_2 || HAVE_NATIVE_mpn_redc_2
diff -r 0cef6d3da306 -r 3c0653082a4e mpn/x86_64/nano/gmp-mparam.h
--- a/mpn/x86_64/nano/gmp-mparam.h	Sun Jan 03 06:45:52 2010 +0100
+++ b/mpn/x86_64/nano/gmp-mparam.h	Sun Jan 03 07:54:25 2010 +0100
@@ -37,8 +37,8 @@
 #define MUL_TOOM22_THRESHOLD                28
 #define MUL_TOOM33_THRESHOLD                37
 #define MUL_TOOM44_THRESHOLD               315
-#define MUL_TOOM6H_THRESHOLD               466
-#define MUL_TOOM8H_THRESHOLD               626
+#define MUL_TOOM6H_THRESHOLD               746
+#define MUL_TOOM8H_THRESHOLD               866
 
 #define MUL_TOOM32_TO_TOOM43_THRESHOLD      73
 #define MUL_TOOM32_TO_TOOM53_THRESHOLD     201
@@ -49,7 +49,7 @@
 #define SQR_TOOM2_THRESHOLD                 38
 #define SQR_TOOM3_THRESHOLD                 77
 #define SQR_TOOM4_THRESHOLD                620
-#define SQR_TOOM6_THRESHOLD                906
+#define SQR_TOOM6_THRESHOLD                996
 #define SQR_TOOM8_THRESHOLD               1138
 
 #define MULMOD_BNM1_THRESHOLD               15
@@ -76,20 +76,20 @@
 #define INV_NEWTON_THRESHOLD               163
 #define INV_APPR_THRESHOLD                 157
 
-#define BINV_NEWTON_THRESHOLD              264
-#define REDC_1_TO_REDC_2_THRESHOLD          12
-#define REDC_2_TO_REDC_N_THRESHOLD          79
+#define BINV_NEWTON_THRESHOLD              228
+#define REDC_1_TO_REDC_2_THRESHOLD          16
+#define REDC_2_TO_REDC_N_THRESHOLD          71
 
-#define MU_DIV_QR_THRESHOLD               1752
-#define MU_DIVAPPR_Q_THRESHOLD            1858
-#define MUPI_DIV_QR_THRESHOLD               74
-#define MU_BDIV_QR_THRESHOLD              1589
-#define MU_BDIV_Q_THRESHOLD               1718
+#define MU_DIV_QR_THRESHOLD               1858
+#define MU_DIVAPPR_Q_THRESHOLD            2009
+#define MUPI_DIV_QR_THRESHOLD              140
+#define MU_BDIV_QR_THRESHOLD              1387
+#define MU_BDIV_Q_THRESHOLD               1787
 
-#define MATRIX22_STRASSEN_THRESHOLD         17
-#define HGCD_THRESHOLD                     135
-#define GCD_DC_THRESHOLD                   515
-#define GCDEXT_DC_THRESHOLD                505
+#define MATRIX22_STRASSEN_THRESHOLD         21
+#define HGCD_THRESHOLD                     118
+#define GCD_DC_THRESHOLD                   416
+#define GCDEXT_DC_THRESHOLD                511
 #define JACOBI_BASE_METHOD                   1
 
 #define GET_STR_DC_THRESHOLD                13


More information about the gmp-commit mailing list