diff options
author | Marc Glisse <marc.glisse@inria.fr> | 2021-06-06 22:53:16 +0200 |
---|---|---|
committer | Marc Glisse <marc.glisse@inria.fr> | 2021-06-06 22:53:16 +0200 |
commit | 6e2405b086ddba4d04646df25491b36a6eea13c3 (patch) | |
tree | c715a8a61a703db47a08685e3a7fdd1d5765fd90 /rand/randmt.c | |
parent | 4efbb58f64cfc98d4cb3977795781e2175e8803f (diff) | |
download | gmp-6e2405b086ddba4d04646df25491b36a6eea13c3.tar.gz |
Consistently use pointers instead of arrays in declarations.
gmp_randstate_t -> gmp_randstate_ptr, etc
Diffstat (limited to 'rand/randmt.c')
-rw-r--r-- | rand/randmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rand/randmt.c b/rand/randmt.c index a05e76a44..daf88944b 100644 --- a/rand/randmt.c +++ b/rand/randmt.c @@ -191,7 +191,7 @@ __gmp_mt_recalc_buffer (gmp_uint_least32_t mt[]) Note that Mersenne Twister is designed to produce outputs in 32-bit words. */ void -__gmp_randget_mt (gmp_randstate_t rstate, mp_ptr dest, unsigned long int nbits) +__gmp_randget_mt (gmp_randstate_ptr rstate, mp_ptr dest, unsigned long int nbits) { gmp_uint_least32_t y; int rbits; @@ -354,7 +354,7 @@ __gmp_randget_mt (gmp_randstate_t rstate, mp_ptr dest, unsigned long int nbits) } void -__gmp_randclear_mt (gmp_randstate_t rstate) +__gmp_randclear_mt (gmp_randstate_ptr rstate) { (*__gmp_free_func) ((void *) RNG_STATE (rstate), ALLOC (rstate->_mp_seed) * GMP_LIMB_BYTES); |