remove getBitVecSize

dev
MITSUNARI Shigeo 10 years ago
parent cf7a2e0715
commit 86f5c64461
  1. 12
      include/mcl/ec.hpp
  2. 1
      include/mcl/fp.hpp

@ -445,18 +445,6 @@ public:
{
compressedExpression_ = compressedExpression;
}
/*
append to bv(not clear bv)
*/
static inline size_t getBitVecSize()
{
const size_t bitLen = _Fp::getModBitLen();
if (compressedExpression_) {
return bitLen + 2;
} else {
return bitLen * 2 + 1;;
}
}
static inline void getYfromX(Fp& y, const Fp& x, bool isYodd)
{
Fp t;

@ -297,7 +297,6 @@ public:
return fp::compareArray(v_, op_.p, op_.N) < 0;
}
static inline size_t getModBitLen() { return op_.bitLen; }
static inline size_t getBitVecSize() { return op_.bitLen; }
bool operator==(const FpT& rhs) const { return fp::isEqualArray(v_, rhs.v_, op_.N); }
bool operator!=(const FpT& rhs) const { return !operator==(rhs); }
inline friend FpT operator+(const FpT& x, const FpT& y) { FpT z; add(z, x, y); return z; }

Loading…
Cancel
Save