summaryrefslogtreecommitdiff
path: root/mpz/init2.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2002-02-08 22:49:38 +0100
committerKevin Ryde <user42@zip.com.au>2002-02-08 22:49:38 +0100
commit63acee91cd62262abc9fdf2bedbc467670d8ce88 (patch)
treef6585ae9b6aa404ee78c095308775fcfd56e5adb /mpz/init2.c
parentcb859a0701946974ba6e353ca6d7255d0d2dee10 (diff)
downloadgmp-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/init2.c')
-rw-r--r--mpz/init2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpz/init2.c b/mpz/init2.c
index 6f5e6d007..29661b683 100644
--- a/mpz/init2.c
+++ b/mpz/init2.c
@@ -26,7 +26,7 @@ void
mpz_init2 (mpz_ptr x, unsigned long bits)
{
mp_size_t limbs;
- limbs = (bits + BITS_PER_MP_LIMB-1) / BITS_PER_MP_LIMB;
+ limbs = (bits + GMP_NUMB_BITS-1) / GMP_NUMB_BITS;
limbs = MAX (limbs, 1);
SIZ(x) = 0;
ALLOC(x) = limbs;