summaryrefslogtreecommitdiff
path: root/mpz/cfdiv_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/cfdiv_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/cfdiv_q_2exp.c')
-rw-r--r--mpz/cfdiv_q_2exp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mpz/cfdiv_q_2exp.c b/mpz/cfdiv_q_2exp.c
index 44080b715..ea573e0dc 100644
--- a/mpz/cfdiv_q_2exp.c
+++ b/mpz/cfdiv_q_2exp.c
@@ -1,7 +1,7 @@
/* mpz_cdiv_q_2exp, mpz_fdiv_q_2exp -- quotient from mpz divided by 2^n.
-Copyright 1991, 1993, 1994, 1996, 1998, 1999, 2001 Free Software Foundation,
-Inc.
+Copyright 1991, 1993, 1994, 1996, 1998, 1999, 2001, 2002 Free Software
+Foundation, Inc.
This file is part of the GNU MP Library.
@@ -39,7 +39,7 @@ cfdiv_q_2exp (mpz_ptr w, mpz_srcptr u, unsigned long cnt, int dir)
usize = SIZ (u);
abs_usize = ABS (usize);
- limb_cnt = cnt / BITS_PER_MP_LIMB;
+ limb_cnt = cnt / GMP_NUMB_BITS;
wsize = abs_usize - limb_cnt;
if (wsize <= 0)
{
@@ -62,7 +62,7 @@ cfdiv_q_2exp (mpz_ptr w, mpz_srcptr u, unsigned long cnt, int dir)
round = up[i];
wp = PTR(w);
- cnt %= BITS_PER_MP_LIMB;
+ cnt %= GMP_NUMB_BITS;
if (cnt != 0)
{
round |= rmask & mpn_rshift (wp, up + limb_cnt, wsize, cnt);