return true if DUMP_JIT

update-fork
MITSUNARI Shigeo 4 years ago
parent 5af07a5522
commit 251bf1de3b
  1. 4
      include/mcl/bn.hpp
  2. 3
      src/fp.cpp

@ -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];

@ -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

Loading…
Cancel
Save