[Gmp-commit] /var/hg/gmp: 2 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Wed Oct 14 06:28:52 UTC 2015
details: /var/hg/gmp/rev/1d3ed6285ee5
changeset: 16858:1d3ed6285ee5
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Wed Oct 14 08:27:28 2015 +0200
description:
mpn/x86/p6/sse2/gmp-mparam.h: SQRLO thresholds
details: /var/hg/gmp/rev/a5fe546688db
changeset: 16859:a5fe546688db
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Wed Oct 14 08:28:43 2015 +0200
description:
NEWS: rootrem speedup for small sizes
diffstat:
NEWS | 7 ++++++-
mpn/x86/p6/sse2/gmp-mparam.h | 19 +++++++++++--------
2 files changed, 17 insertions(+), 9 deletions(-)
diffs (64 lines):
diff -r 015468f454c8 -r a5fe546688db NEWS
--- a/NEWS Tue Oct 13 22:39:19 2015 +0200
+++ b/NEWS Wed Oct 14 08:28:43 2015 +0200
@@ -12,7 +12,8 @@
SPEEDUPS
* Speedup for Intel Broadwell.
- * Square root is now faster when the remainder is not needed.
+ * Square root is now faster when the remainder is not needed. Also the speed
+ to compute the k-th root improved, for small sizes.
FEATURES
* New C++ functions gcd and lcm for mpz_class.
@@ -43,6 +44,10 @@
* We now use manufacturers' code names for x86 CPUs, e.g., "haswell" instead
of names derived from the commercial brands.
+ * Small improvements and better coverage for the test suite.
+
+ * Minor portability enhancements.
+
* The various FreeBSD problems listed for 6.0.0 affect this release too.
diff -r 015468f454c8 -r a5fe546688db mpn/x86/p6/sse2/gmp-mparam.h
--- a/mpn/x86/p6/sse2/gmp-mparam.h Tue Oct 13 22:39:19 2015 +0200
+++ b/mpn/x86/p6/sse2/gmp-mparam.h Wed Oct 14 08:28:43 2015 +0200
@@ -159,6 +159,9 @@
#define MULLO_BASECASE_THRESHOLD 0 /* always */
#define MULLO_DC_THRESHOLD 31
#define MULLO_MUL_N_THRESHOLD 13463
+#define SQRLO_BASECASE_THRESHOLD 0 /* always */
+#define SQRLO_DC_THRESHOLD 100
+#define SQRLO_SQR_THRESHOLD 9236
#define DC_DIV_QR_THRESHOLD 25
#define DC_DIVAPPR_Q_THRESHOLD 55
@@ -180,6 +183,14 @@
#define POWM_SEC_TABLE 2,23,258,879,2246
+#define GET_STR_DC_THRESHOLD 13
+#define GET_STR_PRECOMPUTE_THRESHOLD 25
+#define SET_STR_DC_THRESHOLD 582
+#define SET_STR_PRECOMPUTE_THRESHOLD 1118
+
+#define FAC_DSC_THRESHOLD 178
+#define FAC_ODD_THRESHOLD 34
+
#define MATRIX22_STRASSEN_THRESHOLD 17
#define HGCD_THRESHOLD 69
#define HGCD_APPR_THRESHOLD 112
@@ -187,11 +198,3 @@
#define GCD_DC_THRESHOLD 386
#define GCDEXT_DC_THRESHOLD 303
#define JACOBI_BASE_METHOD 1
-
-#define GET_STR_DC_THRESHOLD 13
-#define GET_STR_PRECOMPUTE_THRESHOLD 25
-#define SET_STR_DC_THRESHOLD 582
-#define SET_STR_PRECOMPUTE_THRESHOLD 1118
-
-#define FAC_DSC_THRESHOLD 178
-#define FAC_ODD_THRESHOLD 34
More information about the gmp-commit
mailing list