rename local template function

update-fork
MITSUNARI Shigeo 4 years ago
parent 52a9f4d213
commit 6afa976ad2
  1. 6
      include/mcl/fp_tower.hpp
  2. 1
      src/fp.cpp

@ -680,9 +680,9 @@ struct Fp2DblT {
mulPre = fp::func_ptr_cast<void (*)(Fp2DblT&, const Fp2&, const Fp2&)>(op.fp2Dbl_mulPreA_);
} else {
if (op.isFullBit) {
mulPre = fp2Dbl_mulPreW<true>;
mulPre = fp2Dbl_mulPreTW<true>;
} else {
mulPre = fp2Dbl_mulPreW<false>;
mulPre = fp2Dbl_mulPreTW<false>;
}
}
if (op.fp2Dbl_sqrPreA_) {
@ -700,7 +700,7 @@ struct Fp2DblT {
@note mod of NIST_P192 is fast
*/
template<bool isFullBit>
static void fp2Dbl_mulPreW(Fp2DblT& z, const Fp2& x, const Fp2& y)
static void fp2Dbl_mulPreTW(Fp2DblT& z, const Fp2& x, const Fp2& y)
{
const Fp& a = x.a;
const Fp& b = x.b;

@ -426,6 +426,7 @@ void setWasmOp(Op& op)
op.fp_mul = mcl::mulMontT<N>;
op.fp_sqr = mcl::sqrMontT<N>;
op.fpDbl_mulPre = mulT<N>;
// op.fpDbl_sqrPre = sqrT<N>;
op.fpDbl_mod = modT<N>;
}
#endif

Loading…
Cancel
Save