diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2011-10-20 17:41:14 +0200 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2011-10-20 17:41:14 +0200 |
commit | 39844cd46da5507d963e984e5e68354341d0554a (patch) | |
tree | 36f674022e27c5714f50b97c30561fedf6477341 /tune | |
parent | 799b93d179d9b5a80af4b214a06351c5ad304017 (diff) | |
download | gmp-39844cd46da5507d963e984e5e68354341d0554a.tar.gz |
Fix naming typo and minsize typo from last change.
Diffstat (limited to 'tune')
-rw-r--r-- | tune/common.c | 4 | ||||
-rw-r--r-- | tune/speed.h | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/tune/common.c b/tune/common.c index bea0180d0..f318de290 100644 --- a/tune/common.c +++ b/tune/common.c @@ -1196,9 +1196,7 @@ speed_mpn_sqr_diagonal (struct speed_params *s) double speed_mpn_sqr_diag_addlsh1 (struct speed_params *s) { - /* FIXME: (1) This gives a 2x value for measurements. - (2) Pass different arguments for rp and tp. */ - SPEED_ROUTINE_MPN_SQR_DIAL_ADDLSH1_CALL (mpn_sqr_diag_addlsh1 (wp, tp, s->xp, s->size)); + SPEED_ROUTINE_MPN_SQR_DIAG_ADDLSH1_CALL (mpn_sqr_diag_addlsh1 (wp, tp, s->xp, s->size)); } #endif diff --git a/tune/speed.h b/tune/speed.h index 75ef6b22c..c017a8ec2 100644 --- a/tune/speed.h +++ b/tune/speed.h @@ -1443,14 +1443,14 @@ int speed_routine_count_zeros_setup #define SPEED_ROUTINE_MPN_SQR(function) \ SPEED_ROUTINE_MPN_SQR_CALL (function (wp, s->xp, s->size)) -#define SPEED_ROUTINE_MPN_SQR_DIAL_ADDLSH1_CALL(call) \ +#define SPEED_ROUTINE_MPN_SQR_DIAG_ADDLSH1_CALL(call) \ { \ mp_ptr wp, tp; \ unsigned i; \ double t; \ TMP_DECL; \ \ - SPEED_RESTRICT_COND (s->size >= 1); \ + SPEED_RESTRICT_COND (s->size >= 2); \ \ TMP_MARK; \ SPEED_TMP_ALLOC_LIMBS (tp, 2 * s->size, s->align_wp); \ |