diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2016-10-28 13:19:28 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2016-10-28 13:19:28 +0800 |
commit | d1a5107c788cf99d8089971173731379c897699a (patch) | |
tree | 8022f1d3278bddf8209914b74062803ce12d81c3 /include | |
parent | 8a899cb3f4a5083259e497ca62a58f810e5f39b4 (diff) | |
download | tangerine-mcl-d1a5107c788cf99d8089971173731379c897699a.tar.gz tangerine-mcl-d1a5107c788cf99d8089971173731379c897699a.tar.zst tangerine-mcl-d1a5107c788cf99d8089971173731379c897699a.zip |
rename MCL_MAX_OP_BIT_SIZE to MCL_MAX_BIT_SIZE
Diffstat (limited to 'include')
-rw-r--r-- | include/mcl/fp.hpp | 4 | ||||
-rw-r--r-- | include/mcl/op.hpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/mcl/fp.hpp b/include/mcl/fp.hpp index 7f93a05..233949e 100644 --- a/include/mcl/fp.hpp +++ b/include/mcl/fp.hpp @@ -86,7 +86,7 @@ Mode StrToMode(const std::string& s); } // mcl::fp -template<class tag = FpTag, size_t maxBitSize = MCL_MAX_OP_BIT_SIZE> +template<class tag = FpTag, size_t maxBitSize = MCL_MAX_BIT_SIZE> class FpT : public fp::Operator<FpT<tag, maxBitSize> > { typedef fp::Unit Unit; typedef fp::Operator<FpT<tag, maxBitSize> > Operator; @@ -123,7 +123,7 @@ public: } static inline void init(const std::string& mstr, fp::Mode mode = fp::FP_AUTO) { - assert(maxBitSize <= MCL_MAX_OP_BIT_SIZE); + assert(maxBitSize <= MCL_MAX_BIT_SIZE); op_.init(mstr, maxBitSize, mode); { // set oneRep FpT& one = *reinterpret_cast<FpT*>(op_.oneRep); diff --git a/include/mcl/op.hpp b/include/mcl/op.hpp index b1457df..920c74c 100644 --- a/include/mcl/op.hpp +++ b/include/mcl/op.hpp @@ -8,8 +8,8 @@ */ #include <mcl/gmp_util.hpp> -#ifndef MCL_MAX_OP_BIT_SIZE - #define MCL_MAX_OP_BIT_SIZE 521 +#ifndef MCL_MAX_BIT_SIZE + #define MCL_MAX_BIT_SIZE 521 #endif #if !defined(MCL_DONT_USE_XBYAK) && (defined(_WIN64) || defined(__x86_64__)) #define MCL_USE_XBYAK @@ -26,7 +26,7 @@ typedef uint64_t Unit; #endif const size_t UnitBitSize = sizeof(Unit) * 8; -const size_t maxOpUnitSize = (MCL_MAX_OP_BIT_SIZE + UnitBitSize - 1) / UnitBitSize; +const size_t maxOpUnitSize = (MCL_MAX_BIT_SIZE + UnitBitSize - 1) / UnitBitSize; struct FpGenerator; struct Op; |