Skip to content

Commit

Permalink
adjust addCTProj for c++03
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Nov 12, 2024
1 parent 99c4d00 commit 007affe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/mcl/ec.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<class E, bool mixed = false>
void addCTProj(E& R, const E& P, const E& Q)
template<class E>
void addCTProj(E& R, const E& P, const E& Q, bool mixed = false)
{
typedef typename E::Fp F;
assert(E::a_ == 0);
Expand Down
4 changes: 2 additions & 2 deletions src/msm_avx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -813,10 +813,10 @@ struct EcMT {
if (isProj) {
if (mixed) {
T t;
mcl::ec::addCTProj<T, mixed>(t, x, y);
mcl::ec::addCTProj(t, x, y, mixed);
z = select(y.isZero(), x, t);
} else {
mcl::ec::addCTProj<T, mixed>(z, x, y);
mcl::ec::addCTProj(z, x, y);
}
} else {
T t;
Expand Down

0 comments on commit 007affe

Please sign in to comment.