diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2014-01-19 13:25:03 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2014-01-19 13:25:03 +0100 |
commit | 5c972901ec4cca2668d9b294077540200f403e69 (patch) | |
tree | f41afbe38095935c886ba0a401b45c7d35cb8e44 /rand | |
parent | bead3dcb5969491d6aee692ac7bc8d30b2e27521 (diff) | |
download | gmp-5c972901ec4cca2668d9b294077540200f403e69.tar.gz |
Get rid of BYTES_PER_MP_LIMB, most files affected.
Diffstat (limited to 'rand')
-rw-r--r-- | rand/randmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |