summaryrefslogtreecommitdiff
path: root/mpz/tdiv_q_2exp.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/tdiv_q_2exp.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/tdiv_q_2exp.c')
-rw-r--r--mpz/tdiv_q_2exp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mpz/tdiv_q_2exp.c b/mpz/tdiv_q_2exp.c
index 8741083e8..4a2c5bca3 100644
--- a/mpz/tdiv_q_2exp.c
+++ b/mpz/tdiv_q_2exp.c
@@ -1,7 +1,7 @@
/* mpz_tdiv_q_2exp -- Divide an integer by 2**CNT. Round the quotient
towards -infinity.
-Copyright 1991, 1993, 1994, 1996, 2001 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 2001, 2002 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -30,7 +30,7 @@ mpz_tdiv_q_2exp (mpz_ptr w, mpz_srcptr u, unsigned long int cnt)
mp_size_t limb_cnt;
usize = u->_mp_size;
- limb_cnt = cnt / BITS_PER_MP_LIMB;
+ limb_cnt = cnt / GMP_NUMB_BITS;
wsize = ABS (usize) - limb_cnt;
if (wsize <= 0)
w->_mp_size = 0;
@@ -45,7 +45,7 @@ mpz_tdiv_q_2exp (mpz_ptr w, mpz_srcptr u, unsigned long int cnt)
wp = w->_mp_d;
up = u->_mp_d;
- cnt %= BITS_PER_MP_LIMB;
+ cnt %= GMP_NUMB_BITS;
if (cnt != 0)
{
mpn_rshift (wp, up + limb_cnt, wsize, cnt);