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/cong_2exp.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/cong_2exp.c')
-rw-r--r-- | mpz/cong_2exp.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/mpz/cong_2exp.c b/mpz/cong_2exp.c index 53556130f..aa205be8e 100644 --- a/mpz/cong_2exp.c +++ b/mpz/cong_2exp.c @@ -1,7 +1,6 @@ -/* mpz_congruent_2exp_p -- test congruence of mpz mod 2^n */ +/* mpz_congruent_2exp_p -- test congruence of mpz mod 2^n. -/* -Copyright 2001 Free Software Foundation, Inc. +Copyright 2001, 2002 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -18,8 +17,7 @@ License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU MP Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, -MA 02111-1307, USA. -*/ +MA 02111-1307, USA. */ #include "gmp.h" #include "gmp-impl.h" @@ -36,8 +34,8 @@ mpz_congruent_2exp_p (mpz_srcptr a, mpz_srcptr c, unsigned long d) if (ABSIZ(a) < ABSIZ(c)) MPZ_SRCPTR_SWAP (a, c); - dlimbs = d / BITS_PER_MP_LIMB; - dbits = d % BITS_PER_MP_LIMB; + dlimbs = d / GMP_NUMB_BITS; + dbits = d % GMP_NUMB_BITS; dmask = (CNST_LIMB(1) << dbits) - 1; ap = PTR(a); |