diff options
author | Kevin Ryde <user42@zip.com.au> | 2002-03-02 23:01:01 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2002-03-02 23:01:01 +0100 |
commit | 0a0cb9a291bc3ab2c57ba3c04184154fa20282eb (patch) | |
tree | ac24e723c7b0f165dcec3f0091aad4101d9790b8 /gmp-impl.h | |
parent | 8016145c77ff17f16d76f1508bd7502635d54923 (diff) | |
download | gmp-0a0cb9a291bc3ab2c57ba3c04184154fa20282eb.tar.gz |
* gmp-impl.h (MPN_SIZEINBASE, MPN_SIZEINBASE_16): Correction to
__totbits for nails.
Diffstat (limited to 'gmp-impl.h')
-rw-r--r-- | gmp-impl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gmp-impl.h b/gmp-impl.h index 3e5d44235..22e2c39e6 100644 --- a/gmp-impl.h +++ b/gmp-impl.h @@ -1648,7 +1648,7 @@ extern const struct bases mp_bases[257]; { \ /* Calculate the total number of significant bits of X. */ \ count_leading_zeros (__cnt, (ptr)[(size)-1]); \ - __totbits = (size) * GMP_NUMB_BITS - __cnt; \ + __totbits = (size) * GMP_NUMB_BITS - (__cnt - GMP_NAIL_BITS); \ \ if (POW2_P (base)) \ { \ @@ -1676,7 +1676,7 @@ extern const struct bases mp_bases[257]; { \ /* Calculate the total number of significant bits of X. */ \ count_leading_zeros (__cnt, (ptr)[(size)-1]); \ - __totbits = (size) * GMP_NUMB_BITS - __cnt; \ + __totbits = (size) * GMP_NUMB_BITS - (__cnt - GMP_NAIL_BITS); \ (result) = (__totbits + 4 - 1) / 4; \ } \ } while (0) |