diff options
author | David Robillard <d@drobilla.net> | 2018-08-19 10:52:33 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-29 14:48:05 +0200 |
commit | c99e14d12be7797984cca0614de28ecda86f4af4 (patch) | |
tree | 813dbf8a072f93d65fa56ef39f1d9edb710cc990 /chilbert/FixBitVec.hpp | |
parent | 8eef3b64474ab7b9c5642254dc53c11e7530134e (diff) | |
download | chilbert-c99e14d12be7797984cca0614de28ecda86f4af4.tar.gz chilbert-c99e14d12be7797984cca0614de28ecda86f4af4.tar.bz2 chilbert-c99e14d12be7797984cca0614de28ecda86f4af4.zip |
Factor out const bitvec operators
Diffstat (limited to 'chilbert/FixBitVec.hpp')
-rw-r--r-- | chilbert/FixBitVec.hpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/chilbert/FixBitVec.hpp b/chilbert/FixBitVec.hpp index f782723..0eab0e9 100644 --- a/chilbert/FixBitVec.hpp +++ b/chilbert/FixBitVec.hpp @@ -183,26 +183,12 @@ public: return *this; } - CFixBitVec operator&(const CFixBitVec& vec) const - { - CFixBitVec t(*this); - t &= vec; - return t; - } - CFixBitVec& operator|=(const CFixBitVec& vec) { m_rack |= vec.m_rack; return *this; } - CFixBitVec operator|(const CFixBitVec& vec) const - { - CFixBitVec t(*this); - t |= vec; - return t; - } - CFixBitVec& operator^=(const CFixBitVec& vec) { m_rack ^= vec.m_rack; @@ -215,20 +201,6 @@ public: return *this; } - CFixBitVec operator^(const CFixBitVec& vec) const - { - CFixBitVec t(*this); - t ^= vec; - return t; - } - - CFixBitVec operator~() const - { - CFixBitVec t(*this); - t.flip(); - return t; - } - CFixBitVec& operator<<=(const size_t bits) { assert(bits < size()); @@ -236,13 +208,6 @@ public: return *this; } - CFixBitVec operator<<(const size_t bits) const - { - CFixBitVec t(*this); - t <<= bits; - return t; - } - CFixBitVec& operator>>=(const size_t bits) { assert(bits < size()); @@ -250,13 +215,6 @@ public: return *this; } - CFixBitVec operator>>(const size_t bits) const - { - CFixBitVec t(*this); - t >>= bits; - return t; - } - /// Right-rotate by `bits` positions CFixBitVec& rotr(const size_t bits) { |