summaryrefslogtreecommitdiff
path: root/mpz/oddfac_1.c
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2012-05-18 11:34:38 +0200
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2012-05-18 11:34:38 +0200
commit4cfc1688ca3424a63d3932f6a776ffd8a1ce80b2 (patch)
tree57b3f1eb2cd9c6f76dd7ae45cf01c381cbcfef30 /mpz/oddfac_1.c
parent5d322881ecc724cae6563330667e16edc1d5e52f (diff)
downloadgmp-4cfc1688ca3424a63d3932f6a776ffd8a1ce80b2.tar.gz
Disable unused primesieve functions.
Diffstat (limited to 'mpz/oddfac_1.c')
-rw-r--r--mpz/oddfac_1.c4
1 files changed, 4 insertions, 0 deletions
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 */