From c042b9af95ed65ac08870866b4ec9703977b8413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albin=20Ahlb=C3=A4ck?= Date: Tue, 5 Mar 2024 14:57:18 +0100 Subject: [PATCH] Set proper TOOM22_LIMIT for Armv8 --- src/mpn_extras/mul.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpn_extras/mul.c b/src/mpn_extras/mul.c index 286d06c34f..592a095ffc 100644 --- a/src/mpn_extras/mul.c +++ b/src/mpn_extras/mul.c @@ -26,7 +26,7 @@ void __gmpn_mul_basecase(mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t); # define WANT_GMP_MUL_BASECASE 0 # define BASECASE_LIMIT 0 # define WANT_TOOM22 1 -# define TOOM22_LIMIT 230 +# define TOOM22_LIMIT 483 /* Profiled on Apple M1 against native GMP 6.3.0 */ #else /* As fallback where we don't have our own mul_basecase: */ /* GMP's MUL_TOOM22_THRESHOLD is >= 16 on most machines */