diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2011-11-07 18:42:27 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2011-11-07 18:42:27 +0100 |
commit | 98ec919fbc24e85c20818b472131687ba42ae6ab (patch) | |
tree | 5a402cf11ffb5ad59a3ddbfa09eba510b2592bdd /tune | |
parent | 9e346a7777b9c5576e5a4758a1701ed114a9e977 (diff) | |
download | gmp-98ec919fbc24e85c20818b472131687ba42ae6ab.tar.gz |
Change how mpn_redc_1 works, use more broadly.
Diffstat (limited to 'tune')
-rw-r--r-- | tune/speed.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tune/speed.h b/tune/speed.h index c017a8ec2..08c01a5dc 100644 --- a/tune/speed.h +++ b/tune/speed.h @@ -2193,7 +2193,7 @@ int speed_routine_count_zeros_setup #define SPEED_ROUTINE_REDC_1(function) \ { \ unsigned i; \ - mp_ptr cp, mp, tp, ap; \ + mp_ptr mp, tp, ap; \ mp_limb_t inv; \ double t; \ TMP_DECL; \ @@ -2203,7 +2203,6 @@ 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); \ @@ -2218,14 +2217,13 @@ 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 (cp, tp, mp, s->size, inv); \ + function (tp, mp, s->size, inv); \ } while (--i != 0); \ t = speed_endtime (); \ \ |