summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mpz/scan0.c4
-rw-r--r--mpz/scan1.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/mpz/scan0.c b/mpz/scan0.c
index 501efc2f2..4a291e0ea 100644
--- a/mpz/scan0.c
+++ b/mpz/scan0.c
@@ -55,7 +55,7 @@ mpz_scan0 (mpz_srcptr u, unsigned long starting_bit)
/* Search for a limb which isn't all ones. If the end is reached then
the zero bit immediately past the end is returned. */
- while (limb == MP_LIMB_T_MAX)
+ while (limb == GMP_NUMB_MAX)
{
p++;
if (p == u_end)
@@ -120,5 +120,5 @@ mpz_scan0 (mpz_srcptr u, unsigned long starting_bit)
limb &= -limb;
count_leading_zeros (cnt, limb);
- return (p - u_ptr) * GMP_NUMB_BITS + GMP_NUMB_BITS-1 - cnt;
+ return (p - u_ptr) * GMP_NUMB_BITS + GMP_LIMB_BITS - 1 - cnt;
}
diff --git a/mpz/scan1.c b/mpz/scan1.c
index 9d318cf24..e293c117e 100644
--- a/mpz/scan1.c
+++ b/mpz/scan1.c
@@ -120,7 +120,7 @@ mpz_scan1 (mpz_srcptr u, unsigned long starting_bit)
/* Search for a limb which is not all ones. If the end is reached
then the zero immediately past the end is the result. */
- while (limb == MP_LIMB_T_MAX)
+ while (limb == GMP_NUMB_MAX)
{
p++;
if (p == u_end)
@@ -138,5 +138,5 @@ mpz_scan1 (mpz_srcptr u, unsigned long starting_bit)
limb &= -limb;
count_leading_zeros (cnt, limb);
- return (p - u_ptr) * GMP_NUMB_BITS + GMP_NUMB_BITS-1 - cnt;
+ return (p - u_ptr) * GMP_NUMB_BITS + GMP_LIMB_BITS - 1 - cnt;
}