From 007affee96bce3bf267e30621f591ce079834223 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 12 Nov 2024 17:12:40 +0900 Subject: [PATCH] adjust addCTProj for c++03 --- include/mcl/ec.hpp | 4 ++-- src/msm_avx.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/mcl/ec.hpp b/include/mcl/ec.hpp index 465bb914..7b33dfec 100644 --- a/include/mcl/ec.hpp +++ b/include/mcl/ec.hpp @@ -578,8 +578,8 @@ void addJacobi(E& R, const E& P, const E& Q) // (b=4) 12M+27A // (generic) 14M+19A // Q.z = 1 if mixed -template -void addCTProj(E& R, const E& P, const E& Q) +template +void addCTProj(E& R, const E& P, const E& Q, bool mixed = false) { typedef typename E::Fp F; assert(E::a_ == 0); diff --git a/src/msm_avx.cpp b/src/msm_avx.cpp index 6d7af63c..cc3e889d 100644 --- a/src/msm_avx.cpp +++ b/src/msm_avx.cpp @@ -813,10 +813,10 @@ struct EcMT { if (isProj) { if (mixed) { T t; - mcl::ec::addCTProj(t, x, y); + mcl::ec::addCTProj(t, x, y, mixed); z = select(y.isZero(), x, t); } else { - mcl::ec::addCTProj(z, x, y); + mcl::ec::addCTProj(z, x, y); } } else { T t;