diff --git a/gmp-impl.h b/gmp-impl.h index 7ce3417d..37141886 100644 --- a/gmp-impl.h +++ b/gmp-impl.h @@ -1033,6 +1033,7 @@ __GMP_DECLSPEC extern gmp_randstate_t __gmp_rands; #define MPN_TOOM3_MUL_N_MINSIZE 17 #define MPN_TOOM4_MUL_N_MINSIZE 32 #define MPN_TOOM3_SQR_N_MINSIZE 17 +#define MUL_TOOM4_INTERNAL_THRESHOLD 550 #define mpn_sqr_diagonal __MPN(sqr_diagonal) void mpn_sqr_diagonal _PROTO ((mp_ptr, mp_srcptr, mp_size_t)); @@ -1431,7 +1432,7 @@ __GMP_DECLSPEC extern const mp_limb_t __gmp_fib_table[]; #endif #ifndef MUL_TOOM4_THRESHOLD -#define MUL_TOOM4_THRESHOLD 550 +#define MUL_TOOM4_THRESHOLD 300 #endif /* MUL_KARATSUBA_THRESHOLD_LIMIT is the maximum for MUL_KARATSUBA_THRESHOLD. diff --git a/mpn/generic/toom4_mul_n.c b/mpn/generic/toom4_mul_n.c index 2f87b969..a0a9e66c 100644 --- a/mpn/generic/toom4_mul_n.c +++ b/mpn/generic/toom4_mul_n.c @@ -48,8 +48,6 @@ MA 02110-1301, USA. */ #define TC4_TIME 0 #endif -#define MUL_TOOM4_INTERNAL_THRESHOLD 550 // Unfortunately current tuning code cannot handle tuning this - void mpn_toom4_mul_n (mp_ptr rp, mp_srcptr up, mp_srcptr vp, mp_size_t n);