remove Fp2:getBitSize()

dev
MITSUNARI Shigeo 8 years ago
parent b38e1ecee9
commit 3e813cdfcc
  1. 2
      include/mcl/ec.hpp
  2. 2
      include/mcl/fp_tower.hpp

@ -647,7 +647,7 @@ public:
}
static inline bool isIoEcCompSupported()
{
return !b_.isZero() && (Fp::getBitSize() & 7) != 0;
return !b_.isZero() && (Fp::BaseFp::getBitSize() & 7) != 0;
}
/*
see mcl/op.hpp for the format of ioMode

@ -103,8 +103,6 @@ class Fp2T : public fp::Operator<Fp2T<Fp> > {
public:
typedef typename Fp::BaseFp BaseFp;
static const size_t maxSize = Fp::maxSize * 2;
// not Fp::getBitSize() * 2
static inline size_t getBitSize() { return Fp::getByteSize() * 8 + Fp::getBitSize(); }
static inline size_t getByteSize() { return Fp::getByteSize() * 2; }
void dump() const
{

Loading…
Cancel
Save