diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2012-05-18 11:34:38 +0200 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2012-05-18 11:34:38 +0200 |
commit | 4cfc1688ca3424a63d3932f6a776ffd8a1ce80b2 (patch) | |
tree | 57b3f1eb2cd9c6f76dd7ae45cf01c381cbcfef30 /mpz | |
parent | 5d322881ecc724cae6563330667e16edc1d5e52f (diff) | |
download | gmp-4cfc1688ca3424a63d3932f6a776ffd8a1ce80b2.tar.gz |
Disable unused primesieve functions.
Diffstat (limited to 'mpz')
-rw-r--r-- | mpz/bin_uiui.c | 2 | ||||
-rw-r--r-- | mpz/oddfac_1.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/mpz/bin_uiui.c b/mpz/bin_uiui.c index fc9168987..65979c297 100644 --- a/mpz/bin_uiui.c +++ b/mpz/bin_uiui.c @@ -501,8 +501,10 @@ mpz_smallkdc_bin_uiui (mpz_ptr r, unsigned long int n, unsigned long int k) /* Section sieve: sieving functions and tools for primes */ /*********************************************************/ +#if WANT_ASSERT static mp_limb_t bit_to_n (mp_limb_t bit) { return (bit*3+4)|1; } +#endif /* id_to_n (x) = bit_to_n (x-1) = (id*3+1)|1*/ static mp_limb_t diff --git a/mpz/oddfac_1.c b/mpz/oddfac_1.c index 8e04919e8..298ad14ef 100644 --- a/mpz/oddfac_1.c +++ b/mpz/oddfac_1.c @@ -85,8 +85,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ /* Section sieve: sieving functions and tools for primes */ /*********************************************************/ +#if WANT_ASSERT static mp_limb_t bit_to_n (mp_limb_t bit) { return (bit*3+4)|1; } +#endif /* id_to_n (x) = bit_to_n (x-1) = (id*3+1)|1*/ static mp_limb_t @@ -96,8 +98,10 @@ id_to_n (mp_limb_t id) { return id*3+1+(id&1); } static mp_limb_t n_to_bit (mp_limb_t n) { return ((n-5)|1)/3U; } +#if WANT_ASSERT static mp_size_t primesieve_size (mp_limb_t n) { return n_to_bit(n) / GMP_LIMB_BITS + 1; } +#endif /*********************************************************/ /* Section mswing: 2-multiswing factorial */ |