[Gmp-commit] /var/hg/gmp: Tweaked tuning setup for hgcd_appr.
mercurial at gmplib.org
mercurial at gmplib.org
Sun Nov 13 20:24:51 CET 2011
details: /var/hg/gmp/rev/9069d170e53b
changeset: 14437:9069d170e53b
user: Niels M?ller <nisse at lysator.liu.se>
date: Sun Nov 13 20:24:47 2011 +0100
description:
Tweaked tuning setup for hgcd_appr.
diffstat:
ChangeLog | 6 ++++++
tune/tuneup.c | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r ed53ca76f9bd -r 9069d170e53b ChangeLog
--- a/ChangeLog Fri Nov 11 23:37:19 2011 +0100
+++ b/ChangeLog Sun Nov 13 20:24:47 2011 +0100
@@ -1,3 +1,9 @@
+2011-11-13 Niels Möller <nisse at lysator.liu.se>
+
+ * tune/tuneup.c (tune_hgcd_appr): Use default min_size.
+ (tune_hgcd_reduce): Increase max_size and step_factor, to 7000
+ and 0.04, respectively.
+
2011-11-11 Torbjorn Granlund <tege at gmplib.org>
* mpn/powerpc64/mode64/sqr_diag_addlsh1.asm: Remove.
diff -r ed53ca76f9bd -r 9069d170e53b tune/tuneup.c
--- a/tune/tuneup.c Fri Nov 11 23:37:19 2011 +0100
+++ b/tune/tuneup.c Sun Nov 13 20:24:47 2011 +0100
@@ -1762,8 +1762,6 @@
static struct param_t param;
param.name = "HGCD_APPR_THRESHOLD";
param.function = speed_mpn_hgcd_appr;
- /* We seem to get strange results for small sizes */
- param.min_size = 30;
one (&hgcd_appr_threshold, ¶m);
}
@@ -1774,6 +1772,8 @@
param.name = "HGCD_REDUCE_THRESHOLD";
param.function = speed_mpn_hgcd_reduce;
param.min_size = 30;
+ param.max_size = 7000;
+ param.step_factor = 0.04;
one (&hgcd_reduce_threshold, ¶m);
}
More information about the gmp-commit
mailing list