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/cong_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/cong_2exp.c')
-rw-r--r-- | mpz/cong_2exp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mpz/cong_2exp.c b/mpz/cong_2exp.c index 873f195b8..f9a7f153e 100644 --- a/mpz/cong_2exp.c +++ b/mpz/cong_2exp.c @@ -22,9 +22,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ int -mpz_congruent_2exp_p (mpz_srcptr a, mpz_srcptr c, unsigned long d) +mpz_congruent_2exp_p (mpz_srcptr a, mpz_srcptr c, mp_bitcnt_t d) { - unsigned long i, dlimbs, dbits; + mp_size_t i, dlimbs; + unsigned dbits; mp_ptr ap, cp; mp_limb_t dmask, alimb, climb, sum; mp_size_t asize_signed, csize_signed, asize, csize; |