Skip to content

Commit

Permalink
enable xbyak version of Fp for bls12-377
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Feb 24, 2025
1 parent f58dd53 commit d480be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fp_generator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ struct FpGenerator : Xbyak::CodeGenerator {
useAdx_ = true;
(void)cpu;
#else
if (op.u != 1) return false;
if (!cpu.has(Xbyak::util::Cpu::tAVX)) return false;
useMulx_ = cpu.has(Xbyak::util::Cpu::tBMI2);
useAdx_ = cpu.has(Xbyak::util::Cpu::tADX);
Expand Down Expand Up @@ -482,6 +481,7 @@ struct FpGenerator : Xbyak::CodeGenerator {
if (gen_fp2_mul2(op.fp2_mul2A_)) {
setFuncInfo(prof_, suf, "2_mul2", op.fp2_mul2A_, getCurr());
}
if (op.u != 1) return;

if (gen_fp2Dbl_mulPre(op.fp2Dbl_mulPreA_)) {
setFuncInfo(prof_, suf, "2Dbl_mulPre", op.fp2Dbl_mulPreA_, getCurr());
Expand Down

0 comments on commit d480be7

Please sign in to comment.