[Gmp-commit] /home/hgfiles/gmp: Adjust measured results for just added thresh...
mercurial at gmplib.org
mercurial at gmplib.org
Sun Dec 20 03:55:41 CET 2009
details: /home/hgfiles/gmp/rev/018d0eeb7339
changeset: 13137:018d0eeb7339
user: Torbjorn Granlund <tege at gmplib.org>
date: Sun Dec 20 03:55:38 2009 +0100
description:
Adjust measured results for just added threshold.
diffstat:
tune/speed.h | 24 ++++++++++++------------
tune/tuneup.c | 7 ++++++-
2 files changed, 18 insertions(+), 13 deletions(-)
diffs (91 lines):
diff -r 83af94ff428b -r 018d0eeb7339 tune/speed.h
--- a/tune/speed.h Sun Dec 20 03:22:24 2009 +0100
+++ b/tune/speed.h Sun Dec 20 03:55:38 2009 +0100
@@ -1140,35 +1140,35 @@
#define SPEED_ROUTINE_MPN_TOOM32_FOR_TOOM43_MUL(function) \
SPEED_ROUTINE_MPN_MUL_N_TSPACE \
- (function (wp, s->xp, s->size, s->yp, 17*s->size/24, tspace), \
- mpn_toom32_mul_itch (s->size, 17*s->size/24), \
+ (function (wp, s->xp, s->size, s->yp, 17*s->size/24, tspace), \
+ mpn_toom32_mul_itch (s->size, 17*s->size/24), \
MPN_TOOM32_MUL_MINSIZE)
#define SPEED_ROUTINE_MPN_TOOM43_FOR_TOOM32_MUL(function) \
SPEED_ROUTINE_MPN_MUL_N_TSPACE \
- (function (wp, s->xp, s->size, s->yp, 17*s->size/24, tspace), \
- mpn_toom43_mul_itch (s->size, 17*s->size/24), \
+ (function (wp, s->xp, s->size, s->yp, 17*s->size/24, tspace), \
+ mpn_toom43_mul_itch (s->size, 17*s->size/24), \
MPN_TOOM43_MUL_MINSIZE)
#define SPEED_ROUTINE_MPN_TOOM32_FOR_TOOM53_MUL(function) \
SPEED_ROUTINE_MPN_MUL_N_TSPACE \
- (function (wp, s->xp, s->size, s->yp, 19*s->size/30, tspace), \
- mpn_toom32_mul_itch (s->size, 19*s->size/30), \
+ (function (wp, s->xp, s->size, s->yp, 19*s->size/30, tspace), \
+ mpn_toom32_mul_itch (s->size, 19*s->size/30), \
MPN_TOOM32_MUL_MINSIZE)
#define SPEED_ROUTINE_MPN_TOOM53_FOR_TOOM32_MUL(function) \
SPEED_ROUTINE_MPN_MUL_N_TSPACE \
- (function (wp, s->xp, s->size, s->yp, 19*s->size/30, tspace), \
- mpn_toom53_mul_itch (s->size, 19*s->size/30), \
+ (function (wp, s->xp, s->size, s->yp, 19*s->size/30, tspace), \
+ mpn_toom53_mul_itch (s->size, 19*s->size/30), \
MPN_TOOM53_MUL_MINSIZE)
#define SPEED_ROUTINE_MPN_TOOM42_FOR_TOOM53_MUL(function) \
SPEED_ROUTINE_MPN_MUL_N_TSPACE \
- (function (wp, s->xp, s->size, s->yp, 11*s->size/20, tspace), \
- mpn_toom42_mul_itch (s->size, 11*s->size/20), \
+ (function (wp, s->xp, s->size, s->yp, 11*s->size/20, tspace), \
+ mpn_toom42_mul_itch (s->size, 11*s->size/20), \
MPN_TOOM42_MUL_MINSIZE)
#define SPEED_ROUTINE_MPN_TOOM53_FOR_TOOM42_MUL(function) \
SPEED_ROUTINE_MPN_MUL_N_TSPACE \
- (function (wp, s->xp, s->size, s->yp, 11*s->size/20, tspace), \
- mpn_toom53_mul_itch (s->size, 11*s->size/20), \
+ (function (wp, s->xp, s->size, s->yp, 11*s->size/20, tspace), \
+ mpn_toom53_mul_itch (s->size, 11*s->size/20), \
MPN_TOOM53_MUL_MINSIZE)
diff -r 83af94ff428b -r 018d0eeb7339 tune/tuneup.c
--- a/tune/tuneup.c Sun Dec 20 03:22:24 2009 +0100
+++ b/tune/tuneup.c Sun Dec 20 03:55:38 2009 +0100
@@ -865,30 +865,35 @@
{
static struct param_t param;
+ param.noprint = 1;
+
param.function = speed_mpn_toom32_for_toom43_mul;
param.function2 = speed_mpn_toom43_for_toom32_mul;
param.name = "MUL_TOOM32_TO_TOOM43_THRESHOLD";
param.min_size = MPN_TOOM43_MUL_MINSIZE;
one (&mul_toom32_to_toom43_threshold, ¶m);
+ print_define ("MUL_TOOM32_TO_TOOM43_THRESHOLD", 17*mul_toom32_to_toom43_threshold/24);
param.function = speed_mpn_toom32_for_toom53_mul;
param.function2 = speed_mpn_toom53_for_toom32_mul;
param.name = "MUL_TOOM32_TO_TOOM53_THRESHOLD";
param.min_size = MPN_TOOM53_MUL_MINSIZE;
one (&mul_toom32_to_toom53_threshold, ¶m);
+ print_define ("MUL_TOOM32_TO_TOOM53_THRESHOLD", 19*mul_toom32_to_toom53_threshold/30);
param.function = speed_mpn_toom42_for_toom53_mul;
param.function2 = speed_mpn_toom53_for_toom42_mul;
param.name = "MUL_TOOM42_TO_TOOM53_THRESHOLD";
param.min_size = MPN_TOOM53_MUL_MINSIZE;
one (&mul_toom42_to_toom53_threshold, ¶m);
+ print_define ("MUL_TOOM32_TO_TOOM53_THRESHOLD", 11*mul_toom42_to_toom53_threshold/20);
param.function = speed_mpn_toom42_mul;
param.function2 = speed_mpn_toom63_mul;
param.name = "MUL_TOOM42_TO_TOOM63_THRESHOLD";
param.min_size = MPN_TOOM63_MUL_MINSIZE;
one (&mul_toom42_to_toom63_threshold, ¶m);
-
+ print_define ("MUL_TOOM42_TO_TOOM63_THRESHOLD", mul_toom42_to_toom63_threshold/2);
}
More information about the gmp-commit
mailing list