From 5c972901ec4cca2668d9b294077540200f403e69 Mon Sep 17 00:00:00 2001 From: Torbjorn Granlund Date: Sun, 19 Jan 2014 13:25:03 +0100 Subject: Get rid of BYTES_PER_MP_LIMB, most files affected. --- rand/randmt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rand') diff --git a/rand/randmt.c b/rand/randmt.c index 677b454cf..c65363ecf 100644 --- a/rand/randmt.c +++ b/rand/randmt.c @@ -347,7 +347,7 @@ void __gmp_randclear_mt (gmp_randstate_t rstate) { (*__gmp_free_func) ((void *) RNG_STATE (rstate), - ALLOC (rstate->_mp_seed) * BYTES_PER_MP_LIMB); + ALLOC (rstate->_mp_seed) * GMP_LIMB_BYTES); } void __gmp_randiset_mt (gmp_randstate_ptr, gmp_randstate_srcptr); @@ -362,7 +362,7 @@ static const gmp_randfnptr_t Mersenne_Twister_Generator_Noseed = { void __gmp_randiset_mt (gmp_randstate_ptr dst, gmp_randstate_srcptr src) { - const mp_size_t sz = ((sizeof (gmp_rand_mt_struct) - 1) / BYTES_PER_MP_LIMB) + 1; + const mp_size_t sz = ((sizeof (gmp_rand_mt_struct) - 1) / GMP_LIMB_BYTES) + 1; gmp_rand_mt_struct *dstp, *srcp; mp_size_t i; @@ -385,7 +385,7 @@ __gmp_randiset_mt (gmp_randstate_ptr dst, gmp_randstate_srcptr src) void __gmp_randinit_mt_noseed (gmp_randstate_ptr dst) { - const mp_size_t sz = ((sizeof (gmp_rand_mt_struct) - 1) / BYTES_PER_MP_LIMB) + 1; + const mp_size_t sz = ((sizeof (gmp_rand_mt_struct) - 1) / GMP_LIMB_BYTES) + 1; gmp_rand_mt_struct *dstp; mp_size_t i; -- cgit v1.2.1