From 86f5c6446116c856ad49eb4b9ebb0b947f6bb6ac Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Sun, 7 Jun 2015 06:02:03 +0900 Subject: [PATCH] remove getBitVecSize --- include/mcl/ec.hpp | 12 ------------ include/mcl/fp.hpp | 1 - 2 files changed, 13 deletions(-) diff --git a/include/mcl/ec.hpp b/include/mcl/ec.hpp index 0b3c369..2c5ff85 100644 --- a/include/mcl/ec.hpp +++ b/include/mcl/ec.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; diff --git a/include/mcl/fp.hpp b/include/mcl/fp.hpp index b304179..54807e0 100644 --- a/include/mcl/fp.hpp +++ b/include/mcl/fp.hpp @@ -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; }