[Gmp-commit] /var/hg/gmp: primesieve.c: Remove now unused #defines.

mercurial at gmplib.org mercurial at gmplib.org
Thu Oct 14 16:35:59 UTC 2021


details:   /var/hg/gmp/rev/dda3b1c12cd4
changeset: 18260:dda3b1c12cd4
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Thu Oct 14 18:35:47 2021 +0200
description:
primesieve.c: Remove now unused #defines.

diffstat:

 primesieve.c |  29 +----------------------------
 1 files changed, 1 insertions(+), 28 deletions(-)

diffs (60 lines):

diff -r 82a948702059 -r dda3b1c12cd4 primesieve.c
--- a/primesieve.c	Thu Oct 14 07:06:45 2021 +0200
+++ b/primesieve.c	Thu Oct 14 18:35:47 2021 +0200
@@ -59,8 +59,6 @@
 primesieve_size (mp_limb_t n) { return n_fto_bit(n) / GMP_LIMB_BITS + 1; }
 #endif
 
-#if GMP_LIMB_BITS > 61
-#define SIEVE_SEED CNST_LIMB(0x3294C9E069128480)
 #if GMP_LIMB_BITS == 64
 /* 110bits pre-sieved mask for primes 5, 11*/
 #define SIEVE_MASK1 CNST_LIMB(0x81214a1204892058)
@@ -69,37 +67,14 @@
 #define SIEVE_2MSK1 CNST_LIMB(0x9402180c40230184)
 #define SIEVE_2MSK2 CNST_LIMB(0x0285021088402120)
 #define SIEVE_2MSKT CNST_LIMB(0xa41210084421)
-#define SEED_LIMIT (17*17-1)
-#else
-#define SEED_LIMIT 202
 #endif
-#else
-#if GMP_LIMB_BITS > 30
-#define SIEVE_SEED CNST_LIMB(0x69128480)
+
 #if GMP_LIMB_BITS == 32
 /* 70bits pre-sieved mask for primes 5, 7*/
 #define SIEVE_MASK1 CNST_LIMB(0x12148960)
 #define SIEVE_MASK2 CNST_LIMB(0x44a120cc)
 #define SIEVE_MASKT CNST_LIMB(0x1a)
-#define SEED_LIMIT (11*11-1)
-#else
-#define SEED_LIMIT 114
 #endif
-#else
-#if GMP_LIMB_BITS > 15
-#define SIEVE_SEED CNST_LIMB(0x8480)
-#define SEED_LIMIT 54
-#else
-#if GMP_LIMB_BITS > 7
-#define SIEVE_SEED CNST_LIMB(0x80)
-#define SEED_LIMIT 34
-#else
-#define SIEVE_SEED CNST_LIMB(0x0)
-#define SEED_LIMIT (5*5-1)
-#endif /* 7 */
-#endif /* 15 */
-#endif /* 30 */
-#endif /* 61 */
 
 #define SET_OFF1(m1, m2, M1, M2, off, BITS)		\
   if (off) {						\
@@ -352,8 +327,6 @@
 }
 
 #undef BLOCK_SIZE
-#undef SEED_LIMIT
-#undef SIEVE_SEED
 #undef SIEVE_MASK1
 #undef SIEVE_MASK2
 #undef SIEVE_MASKT


More information about the gmp-commit mailing list