diff --git a/src/fp.cpp b/src/fp.cpp index 907d76d..7296353 100644 --- a/src/fp.cpp +++ b/src/fp.cpp @@ -362,7 +362,7 @@ static bool initForMont(Op& op, const Unit *p, Mode mode) return true; } -bool Op::init(const mpz_class& _p, size_t maxBitSize, int xi_a, Mode mode, size_t mclMaxBitSize) +bool Op::init(const mpz_class& _p, size_t maxBitSize, int _xi_a, Mode mode, size_t mclMaxBitSize) { if (mclMaxBitSize != MCL_MAX_BIT_SIZE) return false; #ifdef MCL_USE_VINT @@ -384,7 +384,7 @@ bool Op::init(const mpz_class& _p, size_t maxBitSize, int xi_a, Mode mode, size_ mp = _p; bitSize = gmp::getBitSize(mp); pmod4 = gmp::getUnit(mp, 0) % 4; - this->xi_a = xi_a; + this->xi_a = _xi_a; /* priority : MCL_USE_XBYAK > MCL_USE_LLVM > none Xbyak > llvm_mont > llvm > gmp_mont > gmp