From 7c55450bb27258495c0ed9237156494493662f03 Mon Sep 17 00:00:00 2001 From: gladman Date: Tue, 17 Jan 2012 16:53:33 +0000 Subject: [PATCH] correct call to old FFT from new code (for timing old FFT only) --- mpn/generic/mulmod_2expp1.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mpn/generic/mulmod_2expp1.c b/mpn/generic/mulmod_2expp1.c index d86d9078..b8ffc057 100644 --- a/mpn/generic/mulmod_2expp1.c +++ b/mpn/generic/mulmod_2expp1.c @@ -37,22 +37,20 @@ static mp_size_t mulmod_2expp1_table_n[FFT_N_NUM] = MULMOD_TAB; int mpn_mulmod_2expp1(mp_ptr r, mp_srcptr i1, mp_srcptr i2, mp_size_t n, mp_size_t w, mp_ptr tt) { -#if defined( OLD_FFT ) - return mpn_mulmod_2expp1_basecase(r, i1, i2, c, bits, tt); -#else mp_size_t bits = n*w; mp_size_t limbs = bits/GMP_LIMB_BITS; mp_bitcnt_t depth1, depth = 1; - mp_size_t w1, off; +#if !defined( OLD_FFT ) if (limbs <= FFT_MULMOD_2EXPP1_CUTOFF) +#endif { mp_limb_t c = 2 * i1[limbs] + i2[limbs]; r[limbs] = mpn_mulmod_2expp1_basecase(r, i1, i2, c, bits, tt); return r[limbs]; } - +#if !defined( OLD_FFT ) while ((((mp_limb_t)1)<