From 251bf1de3bf4a3806b22c432469f2a526d7d3827 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Wed, 23 Sep 2020 16:00:46 +0900 Subject: [PATCH] return true if DUMP_JIT --- include/mcl/bn.hpp | 4 ++++ src/fp.cpp | 3 +++ 2 files changed, 7 insertions(+) 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