diff options
author | Kevin Ryde <user42@zip.com.au> | 2002-02-08 22:49:38 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2002-02-08 22:49:38 +0100 |
commit | 63acee91cd62262abc9fdf2bedbc467670d8ce88 (patch) | |
tree | f6585ae9b6aa404ee78c095308775fcfd56e5adb /mpz/array_init.c | |
parent | cb859a0701946974ba6e353ca6d7255d0d2dee10 (diff) | |
download | gmp-63acee91cd62262abc9fdf2bedbc467670d8ce88.tar.gz |
* mpz/array_init.c, mpz/cfdiv_q_2exp.c, mpz/cfdiv_r_2exp.c,
mpz/cong_2exp.c, mpz/divis_2exp.c, mpz/hamdist.c, mpz/init2.c,
mpz/mul_2exp.c, mpz/realloc2.c, mpz/scan0.c, mpz/scan1.c,
mpz/setbit.c, mpz/tdiv_q_2exp.c, mpz/tdiv_r_2exp.c, mpz/tstbit.c,
mpz/urandomb.c: Use GMP_NUMB_BITS.
Diffstat (limited to 'mpz/array_init.c')
-rw-r--r-- | mpz/array_init.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mpz/array_init.c b/mpz/array_init.c index 65448f614..dbe1b93a6 100644 --- a/mpz/array_init.c +++ b/mpz/array_init.c @@ -1,6 +1,7 @@ /* mpz_array_init (array, array_size, size_per_elem) -- -Copyright 1991, 1993, 1994, 1995, 2000, 2001 Free Software Foundation, Inc. +Copyright 1991, 1993, 1994, 1995, 2000, 2001, 2002 Free Software Foundation, +Inc. This file is part of the GNU MP Library. @@ -29,7 +30,7 @@ mpz_array_init (mpz_ptr arr, mp_size_t arr_size, mp_size_t nbits) register size_t i; mp_size_t nlimbs; - nlimbs = (nbits + BITS_PER_MP_LIMB - 1) / BITS_PER_MP_LIMB; + nlimbs = (nbits + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS; p = (mp_ptr) (*__gmp_allocate_func) (arr_size * nlimbs * BYTES_PER_MP_LIMB); for (i = 0; i < arr_size; i++) |