summaryrefslogtreecommitdiff
path: root/mpz/oddfac_1.c
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2012-04-20 09:32:28 +0200
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2012-04-20 09:32:28 +0200
commit6d8b9e00b9a3a0cef55d98509f9de4fc50207a2e (patch)
tree0b280991b26a32cb3b1325ebead52e6ce8b0a1bc /mpz/oddfac_1.c
parentbec624e41db92021f1cbbe560ff2bda07caa64f3 (diff)
downloadgmp-6d8b9e00b9a3a0cef55d98509f9de4fc50207a2e.tar.gz
Move LOG2C to gmp-impl.h
Diffstat (limited to 'mpz/oddfac_1.c')
-rw-r--r--mpz/oddfac_1.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/mpz/oddfac_1.c b/mpz/oddfac_1.c
index 5858088fe..826b61828 100644
--- a/mpz/oddfac_1.c
+++ b/mpz/oddfac_1.c
@@ -251,14 +251,6 @@ mpz_2multiswing_1 (mpz_ptr x, mp_limb_t n, mp_ptr sieve, mp_ptr factors)
/* Section oddfac: odd factorial, needed also by binomial*/
/*********************************************************/
-/* This is intended for constant THRESHOLDs only, where the compiler
- can completely fold the result. */
-#define LOG2C(n) \
- (((n) >= 0x1) + ((n) >= 0x2) + ((n) >= 0x4) + ((n) >= 0x8) + \
- ((n) >= 0x10) + ((n) >= 0x20) + ((n) >= 0x40) + ((n) >= 0x80) + \
- ((n) >= 0x100) + ((n) >= 0x200) + ((n) >= 0x400) + ((n) >= 0x800) + \
- ((n) >= 0x1000) + ((n) >= 0x2000) + ((n) >= 0x4000) + ((n) >= 0x8000))
-
#if TUNE_PROGRAM_BUILD
#define FACTORS_PER_LIMB (GMP_NUMB_BITS / (LOG2C(FAC_DSC_THRESHOLD_LIMIT-1)+1))
#else