diff options
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) |