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 /primesieve.c | |
parent | 5d322881ecc724cae6563330667e16edc1d5e52f (diff) | |
download | gmp-4cfc1688ca3424a63d3932f6a776ffd8a1ce80b2.tar.gz |
Disable unused primesieve functions.
Diffstat (limited to 'primesieve.c')
-rw-r--r-- | primesieve.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/primesieve.c b/primesieve.c index ea894dd77..d1bf5a161 100644 --- a/primesieve.c +++ b/primesieve.c @@ -65,8 +65,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ /* Section sieve: sieving functions and tools for primes */ /*********************************************************/ +#if 0 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 @@ -76,8 +78,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 0 static mp_size_t primesieve_size (mp_limb_t n) { return n_to_bit(n) / GMP_LIMB_BITS + 1; } +#endif #if GMP_LIMB_BITS > 61 #define SIEVE_SEED CNST_LIMB(0x3294C9E069128480) |