[Gmp-commit] /var/hg/gmp: Correct miminum for FAC_DSC.
mercurial at gmplib.org
mercurial at gmplib.org
Tue Jan 10 20:43:45 CET 2012
details: /var/hg/gmp/rev/b06ebaa379ca
changeset: 14563:b06ebaa379ca
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Tue Jan 10 20:43:18 2012 +0100
description:
Correct miminum for FAC_DSC.
diffstat:
ChangeLog | 6 ++++++
mpn/minithres/gmp-mparam.h | 3 +++
mpn/x86_64/gmp-mparam.h | 4 ++++
tune/tuneup.c | 2 +-
4 files changed, 14 insertions(+), 1 deletions(-)
diffs (46 lines):
diff -r 3c22cac2c9c9 -r b06ebaa379ca ChangeLog
--- a/ChangeLog Sat Jan 07 13:22:49 2012 +0100
+++ b/ChangeLog Tue Jan 10 20:43:18 2012 +0100
@@ -1,3 +1,9 @@
+2012-01-10 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+ * mpn/minithres/gmp-mparam.h: New FAC_ODD_ and FAC_DSC_
+ thresholds.
+ * tune/tuneup.c (tune_fac_ui): Correct minimum for FAC_DSC_.
+
2012-01-07 Torbjorn Granlund <tege at gmplib.org>
* mpz/mul_2exp.c: Rewrite.
diff -r 3c22cac2c9c9 -r b06ebaa379ca mpn/minithres/gmp-mparam.h
--- a/mpn/minithres/gmp-mparam.h Sat Jan 07 13:22:49 2012 +0100
+++ b/mpn/minithres/gmp-mparam.h Tue Jan 10 20:43:18 2012 +0100
@@ -93,3 +93,6 @@
#define GET_STR_PRECOMPUTE_THRESHOLD 10
#define SET_STR_THRESHOLD 64
#define SET_STR_PRECOMPUTE_THRESHOLD 100
+
+#define FAC_ODD_THRESHOLD 0 /* always */
+#define FAC_DSC_THRESHOLD 16
diff -r 3c22cac2c9c9 -r b06ebaa379ca mpn/x86_64/gmp-mparam.h
--- a/mpn/x86_64/gmp-mparam.h Sat Jan 07 13:22:49 2012 +0100
+++ b/mpn/x86_64/gmp-mparam.h Tue Jan 10 20:43:18 2012 +0100
@@ -202,3 +202,7 @@
#define GET_STR_PRECOMPUTE_THRESHOLD 28
#define SET_STR_DC_THRESHOLD 248
#define SET_STR_PRECOMPUTE_THRESHOLD 1648
+
+#define FAC_DSC_THRESHOLD 1075
+#define FAC_ODD_THRESHOLD 0 /* always */
+
diff -r 3c22cac2c9c9 -r b06ebaa379ca tune/tuneup.c
--- a/tune/tuneup.c Sat Jan 07 13:22:49 2012 +0100
+++ b/tune/tuneup.c Tue Jan 10 20:43:18 2012 +0100
@@ -2629,7 +2629,7 @@
param.function = speed_mpz_fac_ui_tune;
param.name = "FAC_DSC_THRESHOLD";
- param.min_size = 32;
+ param.min_size = 16;
param.max_size = FAC_DSC_THRESHOLD_LIMIT;
one (&fac_dsc_threshold, ¶m);
More information about the gmp-commit
mailing list