aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2019-02-06 14:58:54 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2019-02-06 14:58:54 +0800
commit2ac2be86d04cfeace4dd9383d458487e979a0cd2 (patch)
tree77d9cfdf095a6e6dcd5a03eac74f62195825376e
parent23ce452c6656aca17844cea4b674d592e77a4f32 (diff)
downloaddexon-mcl-2ac2be86d04cfeace4dd9383d458487e979a0cd2.tar.gz
dexon-mcl-2ac2be86d04cfeace4dd9383d458487e979a0cd2.tar.zst
dexon-mcl-2ac2be86d04cfeace4dd9383d458487e979a0cd2.zip
fix. clear mul_xi in init
-rw-r--r--include/mcl/fp_tower.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mcl/fp_tower.hpp b/include/mcl/fp_tower.hpp
index 96a6edb..95722e2 100644
--- a/include/mcl/fp_tower.hpp
+++ b/include/mcl/fp_tower.hpp
@@ -386,6 +386,7 @@ public:
// assert(Fp::maxSize <= 256);
mcl::fp::Op& op = Fp::op_;
assert(op.xi_a);
+ mul_xi = 0;
#ifdef MCL_XBYAK_DIRECT_CALL
add = fp::func_ptr_cast<void (*)(Fp2T& z, const Fp2T& x, const Fp2T& y)>(op.fp2_addA_);
if (add == 0) add = addC;