diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2009-12-20 23:54:57 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2009-12-20 23:54:57 +0100 |
commit | 3ba1597c34eeddef0c820863d98ed9506c8d3e9c (patch) | |
tree | 967966420d447f3e630ca1cc85709b7f9c1e03af /mpz/cfdiv_r_2exp.c | |
parent | a6426a5313cac3c0fb05358e7d254653222f745f (diff) | |
download | gmp-3ba1597c34eeddef0c820863d98ed9506c8d3e9c.tar.gz |
Change all bit counts for bignums to use mp_bitcnt_t. Update documentation.
Diffstat (limited to 'mpz/cfdiv_r_2exp.c')
-rw-r--r-- | mpz/cfdiv_r_2exp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mpz/cfdiv_r_2exp.c b/mpz/cfdiv_r_2exp.c index 005779f15..64bb7eeb4 100644 --- a/mpz/cfdiv_r_2exp.c +++ b/mpz/cfdiv_r_2exp.c @@ -27,11 +27,11 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ /* dir==1 for ceil, dir==-1 for floor */ -static void __gmpz_cfdiv_r_2exp __GMP_PROTO ((REGPARM_3_1 (mpz_ptr w, mpz_srcptr u, unsigned long cnt, int dir))) REGPARM_ATTR (1); +static void __gmpz_cfdiv_r_2exp __GMP_PROTO ((REGPARM_3_1 (mpz_ptr, mpz_srcptr, mp_bitcnt_t, int))) REGPARM_ATTR (1); #define cfdiv_r_2exp(w,u,cnt,dir) __gmpz_cfdiv_r_2exp (REGPARM_3_1 (w, u, cnt, dir)) REGPARM_ATTR (1) static void -cfdiv_r_2exp (mpz_ptr w, mpz_srcptr u, unsigned long cnt, int dir) +cfdiv_r_2exp (mpz_ptr w, mpz_srcptr u, mp_bitcnt_t cnt, int dir) { mp_size_t usize, abs_usize, limb_cnt, i; mp_srcptr up; @@ -143,13 +143,13 @@ cfdiv_r_2exp (mpz_ptr w, mpz_srcptr u, unsigned long cnt, int dir) void -mpz_cdiv_r_2exp (mpz_ptr w, mpz_srcptr u, unsigned long cnt) +mpz_cdiv_r_2exp (mpz_ptr w, mpz_srcptr u, mp_bitcnt_t cnt) { cfdiv_r_2exp (w, u, cnt, 1); } void -mpz_fdiv_r_2exp (mpz_ptr w, mpz_srcptr u, unsigned long cnt) +mpz_fdiv_r_2exp (mpz_ptr w, mpz_srcptr u, mp_bitcnt_t cnt) { cfdiv_r_2exp (w, u, cnt, -1); } |