=================================================================== RCS file: /home/cvs/OpenXM_contrib/gmp/mpz/Attic/mul_2exp.c,v retrieving revision 1.1.1.2 retrieving revision 1.1.1.3 diff -u -p -r1.1.1.2 -r1.1.1.3 --- OpenXM_contrib/gmp/mpz/Attic/mul_2exp.c 2000/09/09 14:12:55 1.1.1.2 +++ OpenXM_contrib/gmp/mpz/Attic/mul_2exp.c 2003/08/25 16:06:33 1.1.1.3 @@ -1,6 +1,6 @@ /* mpz_mul_2exp -- Multiply a bignum by 2**CNT -Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc. +Copyright 1991, 1993, 1994, 1996, 2001, 2002 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -23,14 +23,7 @@ MA 02111-1307, USA. */ #include "gmp-impl.h" void -#if __STDC__ mpz_mul_2exp (mpz_ptr w, mpz_srcptr u, unsigned long int cnt) -#else -mpz_mul_2exp (w, u, cnt) - mpz_ptr w; - mpz_srcptr u; - unsigned long int cnt; -#endif { mp_size_t usize = u->_mp_size; mp_size_t abs_usize = ABS (usize); @@ -45,7 +38,7 @@ mpz_mul_2exp (w, u, cnt) return; } - limb_cnt = cnt / BITS_PER_MP_LIMB; + limb_cnt = cnt / GMP_NUMB_BITS; wsize = abs_usize + limb_cnt + 1; if (w->_mp_alloc < wsize) _mpz_realloc (w, wsize); @@ -53,7 +46,7 @@ mpz_mul_2exp (w, u, cnt) wp = w->_mp_d; wsize = abs_usize + limb_cnt; - cnt %= BITS_PER_MP_LIMB; + cnt %= GMP_NUMB_BITS; if (cnt != 0) { wlimb = mpn_lshift (wp + limb_cnt, u->_mp_d, abs_usize, cnt);