fix : disable bmi2 for old cpus

update-fork
MITSUNARI Shigeo 4 years ago
parent 3be1f32788
commit b4abccd9a5
  1. 1
      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

Loading…
Cancel
Save