diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2012-06-24 19:59:49 +0200 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2012-06-24 19:59:49 +0200 |
commit | d9089b155846f2cad27f9aa990a4a67901305112 (patch) | |
tree | 918df3dd67f7b122011047907f18a98b9c81923d /mpz | |
parent | ef34640f9edc108eb48d5cebe7ad08c7cd2ed945 (diff) | |
download | gmp-d9089b155846f2cad27f9aa990a4a67901305112.tar.gz |
Replace MPN_SIZEINBASE_16 in gmp-impl.h with MPN_SIZEINBASE_2EXP from mpz/export.c
Diffstat (limited to 'mpz')
-rw-r--r-- | mpz/export.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/mpz/export.c b/mpz/export.c index 674ab7fda..d7903e385 100644 --- a/mpz/export.c +++ b/mpz/export.c @@ -34,19 +34,6 @@ static const mp_limb_t endian_test = (CNST_LIMB(1) << (GMP_LIMB_BITS-7)) - 1; #define HOST_ENDIAN (* (signed char *) &endian_test) #endif - -#define MPN_SIZEINBASE_2EXP(result, ptr, size, base2exp) \ - do { \ - int __cnt; \ - unsigned long __totbits; \ - ASSERT ((size) > 0); \ - ASSERT ((ptr)[(size)-1] != 0); \ - count_leading_zeros (__cnt, (ptr)[(size)-1]); \ - __totbits = (size) * GMP_NUMB_BITS - (__cnt - GMP_NAIL_BITS); \ - (result) = (__totbits + (base2exp)-1) / (base2exp); \ - } while (0) - - void * mpz_export (void *data, size_t *countp, int order, size_t size, int endian, size_t nail, mpz_srcptr z) |