summaryrefslogtreecommitdiff
path: root/tune
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2012-02-19 21:04:16 +0100
committerTorbjorn Granlund <tege@gmplib.org>2012-02-19 21:04:16 +0100
commit796a1b2660e8b10c1c9b8113e71ddff57516e3ad (patch)
treea9ba68a404749bc23f9df2ff92fdb80e70ff9795 /tune
parent2d8505c4e91c252067110df0571564eab836b973 (diff)
downloadgmp-796a1b2660e8b10c1c9b8113e71ddff57516e3ad.tar.gz
Update redc_1 and redc_2 to do the add_n but not the conditional sub_n.
Diffstat (limited to 'tune')
-rw-r--r--tune/speed.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tune/speed.h b/tune/speed.h
index 910881964..a18377950 100644
--- a/tune/speed.h
+++ b/tune/speed.h
@@ -2232,7 +2232,7 @@ int speed_routine_count_zeros_setup
#define SPEED_ROUTINE_REDC_1(function) \
{ \
unsigned i; \
- mp_ptr mp, tp, ap; \
+ mp_ptr cp, mp, tp, ap; \
mp_limb_t inv; \
double t; \
TMP_DECL; \
@@ -2242,6 +2242,7 @@ int speed_routine_count_zeros_setup
TMP_MARK; \
SPEED_TMP_ALLOC_LIMBS (ap, 2*s->size+1, s->align_xp); \
SPEED_TMP_ALLOC_LIMBS (mp, s->size, s->align_yp); \
+ SPEED_TMP_ALLOC_LIMBS (cp, s->size, s->align_wp); \
SPEED_TMP_ALLOC_LIMBS (tp, 2*s->size+1, s->align_wp2); \
\
MPN_COPY (ap, s->xp, s->size); \
@@ -2256,13 +2257,14 @@ int speed_routine_count_zeros_setup
speed_operand_src (s, ap, 2*s->size+1); \
speed_operand_dst (s, tp, 2*s->size+1); \
speed_operand_src (s, mp, s->size); \
+ speed_operand_dst (s, cp, s->size); \
speed_cache_fill (s); \
\
speed_starttime (); \
i = s->reps; \
do { \
MPN_COPY (tp, ap, 2*s->size); \
- function (tp, mp, s->size, inv); \
+ function (cp, tp, mp, s->size, inv); \
} while (--i != 0); \
t = speed_endtime (); \
\