From b4abccd9a5581de28afbf3831b15e104b69c82b7 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 9 Feb 2021 04:52:05 +0900 Subject: [PATCH] fix : disable bmi2 for old cpus --- src/fp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fp.cpp b/src/fp.cpp index 0534580..dd2a15b 100644 --- a/src/fp.cpp +++ b/src/fp.cpp @@ -394,6 +394,7 @@ static bool initForMont(Op& op, const Unit *p, Mode mode) return true; #endif #elif defined(MCL_STATIC_CODE) + if (mode != FP_XBYAK) return true; fp::setStaticCode(op); bool enableInv = true; #endif // MCL_USE_XBYAK