From 6afa976ad2beb81a852bf39419235da440c0dc6c Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Mon, 8 Feb 2021 16:21:59 +0900 Subject: [PATCH] rename local template function --- include/mcl/fp_tower.hpp | 6 +++--- src/fp.cpp | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/mcl/fp_tower.hpp b/include/mcl/fp_tower.hpp index 730a044..26d96e1 100644 --- a/include/mcl/fp_tower.hpp +++ b/include/mcl/fp_tower.hpp @@ -680,9 +680,9 @@ struct Fp2DblT { mulPre = fp::func_ptr_cast(op.fp2Dbl_mulPreA_); } else { if (op.isFullBit) { - mulPre = fp2Dbl_mulPreW; + mulPre = fp2Dbl_mulPreTW; } else { - mulPre = fp2Dbl_mulPreW; + mulPre = fp2Dbl_mulPreTW; } } if (op.fp2Dbl_sqrPreA_) { @@ -700,7 +700,7 @@ struct Fp2DblT { @note mod of NIST_P192 is fast */ template - 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; diff --git a/src/fp.cpp b/src/fp.cpp index cd3266e..0534580 100644 --- a/src/fp.cpp +++ b/src/fp.cpp @@ -426,6 +426,7 @@ void setWasmOp(Op& op) op.fp_mul = mcl::mulMontT; op.fp_sqr = mcl::sqrMontT; op.fpDbl_mulPre = mulT; +// op.fpDbl_sqrPre = sqrT; op.fpDbl_mod = modT; } #endif