diff options
author | tege <tege@gmplib.org> | 2002-04-29 14:13:00 +0200 |
---|---|---|
committer | tege <tege@gmplib.org> | 2002-04-29 14:13:00 +0200 |
commit | bfdd2c3703a6045ee19cb9929074d539b255e8fb (patch) | |
tree | 124640b00b4ab5e6687ca8d2d00d8bf938fd7cd5 | |
parent | dff754a443ebedae0e922459e4ad4107339bc1c9 (diff) | |
download | gmp-bfdd2c3703a6045ee19cb9929074d539b255e8fb.tar.gz |
Nailify.
-rw-r--r-- | mpn/generic/random.c | 4 | ||||
-rw-r--r-- | mpz/gcd.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mpn/generic/random.c b/mpn/generic/random.c index c630f6f29..37bc47f5d 100644 --- a/mpn/generic/random.c +++ b/mpn/generic/random.c @@ -34,9 +34,9 @@ mpn_random (mp_ptr ptr, mp_size_t size) return; rands = RANDS; - _gmp_rand (ptr, rands, size * BITS_PER_MP_LIMB); + _gmp_rand (ptr, rands, size * GMP_NUMB_BITS); /* Make sure the most significant limb is non-zero. */ while (ptr[size-1] == 0) - _gmp_rand (&ptr[size-1], rands, BITS_PER_MP_LIMB); + _gmp_rand (&ptr[size-1], rands, GMP_NUMB_BITS); } @@ -141,7 +141,7 @@ gcd (mpz_srcptr u, mpz_srcptr v, mpz_ptr g) if (g_zero_bits != 0) { mp_limb_t cy_limb; - gsize += (vp[vsize - 1] >> (BITS_PER_MP_LIMB - g_zero_bits)) != 0; + gsize += (vp[vsize - 1] >> (GMP_NUMB_BITS - g_zero_bits)) != 0; if (g->_mp_alloc < gsize) _mpz_realloc (g, gsize); MPN_ZERO (g->_mp_d, g_zero_limbs); |