diff --git a/include/mcl/bn.hpp b/include/mcl/bn.hpp index ab9e15c..68accfb 100644 --- a/include/mcl/bn.hpp +++ b/include/mcl/bn.hpp @@ -885,6 +885,10 @@ struct Param { if (!*pb) return; Fp::init(pb, cp.xi_a, p, mode); if (!*pb) return; +#ifdef MCL_DUMP_JIT + *pb = true; + return; +#endif Fp2::init(); const Fp2 xi(cp.xi_a, 1); g2 = Fp2::get_gTbl()[0]; diff --git a/src/fp.cpp b/src/fp.cpp index 1913559..d46eb6e 100644 --- a/src/fp.cpp +++ b/src/fp.cpp @@ -380,6 +380,9 @@ static bool initForMont(Op& op, const Unit *p, Mode mode) #ifdef MCL_USE_XBYAK if (op.fg == 0) op.fg = Op::createFpGenerator(); bool useXbyak = op.fg->init(op, g_cpu); +#ifdef MCL_DUMP_JIT + return true; +#endif #ifdef MCL_USE_VINT const int maxN = 6; #else