diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2009-11-28 12:57:53 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2009-11-28 12:57:53 +0100 |
commit | 4fab69d02817734bc7e21e6c3f61bd3098b3b394 (patch) | |
tree | 0a43f3246a49a0a04fba10900dcea1868c208578 /tune/common.c | |
parent | 2c639d5f1b78f47267eecfca5396a0eabc7ea5e9 (diff) | |
download | gmp-4fab69d02817734bc7e21e6c3f61bd3098b3b394.tar.gz |
Finish renaming BITS_PER_MP_LIMB to GMP_LIMB_BITS.
Diffstat (limited to 'tune/common.c')
-rw-r--r-- | tune/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tune/common.c b/tune/common.c index bd576e7de..004bb4444 100644 --- a/tune/common.c +++ b/tune/common.c @@ -2025,7 +2025,7 @@ speed_operator_mod (struct speed_params *s) be typical for count_trailing_zeros in a GCD etc. r==1 measures on data with the resultant count uniformly distributed - between 0 and BITS_PER_MP_LIMB-1. This is probably sensible for + between 0 and GMP_LIMB_BITS-1. This is probably sensible for count_leading_zeros on the high limbs of divisors. */ int @@ -2052,7 +2052,7 @@ speed_routine_count_zeros_setup (struct speed_params *s, rest below. */ for (i = 0; i < SPEED_BLOCK_SIZE; i++) { - mp_limb_t set = CNST_LIMB(1) << (s->yp_block[i] % BITS_PER_MP_LIMB); + mp_limb_t set = CNST_LIMB(1) << (s->yp_block[i] % GMP_LIMB_BITS); mp_limb_t keep_below = set-1; mp_limb_t keep_above = MP_LIMB_T_MAX ^ keep_below; mp_limb_t keep = (leading ? keep_below : keep_above); |