diff options
author | David Robillard <d@drobilla.net> | 2018-08-11 18:53:23 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-29 14:46:19 +0200 |
commit | 7c4a75add8ee00eb791aa074e84c608c9bcf7c5f (patch) | |
tree | c91c0053e0aae808525b6da8e1264eca21e9bfaa /chilbert/BigBitVec.hpp | |
parent | 9ea2c312d7641e60f8955067b2c301151dad5403 (diff) | |
download | chilbert-7c4a75add8ee00eb791aa074e84c608c9bcf7c5f.tar.gz chilbert-7c4a75add8ee00eb791aa074e84c608c9bcf7c5f.tar.bz2 chilbert-7c4a75add8ee00eb791aa074e84c608c9bcf7c5f.zip |
Add methods to set all bits
Diffstat (limited to 'chilbert/BigBitVec.hpp')
-rw-r--r-- | chilbert/BigBitVec.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chilbert/BigBitVec.hpp b/chilbert/BigBitVec.hpp index 1f97039..7a1b49a 100644 --- a/chilbert/BigBitVec.hpp +++ b/chilbert/BigBitVec.hpp @@ -75,6 +75,13 @@ public: return *this; } + /// Set all bits to one + CBigBitVec& set() + { + memset(m_pcRacks.get(), 0xFF, sizeof(CFixBitVec) * m_iRacks); + return *this; + } + /// Truncate to a given precision in bits (zero MSBs) CBigBitVec& truncate(const int bits) { |