diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-10-23 17:53:01 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-10-23 17:53:01 +0000 |
| commit | ead246455adf1a215ec2715dad6533073a6beb4e (patch) | |
| tree | f3f97a47d77053bf96fe74cdbd6fae74380e8a92 /include/lldb/Utility/Flags.h | |
| parent | fdb00c4408990a0a63ef7f496d809ce59f263bc5 (diff) | |
Notes
Diffstat (limited to 'include/lldb/Utility/Flags.h')
| -rw-r--r-- | include/lldb/Utility/Flags.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/include/lldb/Utility/Flags.h b/include/lldb/Utility/Flags.h index 48b14e7d2a2ca..aa869eca0c6e0 100644 --- a/include/lldb/Utility/Flags.h +++ b/include/lldb/Utility/Flags.h @@ -121,32 +121,6 @@ public: /// \b true if \a bit is 0, \b false otherwise. bool IsClear(ValueType bit) const { return (m_flags & bit) == 0; } - /// Get the number of zero bits in \a m_flags. - /// - /// \return - /// The number of bits that are set to 0 in the current flags. - size_t ClearCount() const { - size_t count = 0; - for (ValueType shift = 0; shift < sizeof(ValueType) * 8; ++shift) { - if ((m_flags & (1u << shift)) == 0) - ++count; - } - return count; - } - - /// Get the number of one bits in \a m_flags. - /// - /// \return - /// The number of bits that are set to 1 in the current flags. - size_t SetCount() const { - size_t count = 0; - for (ValueType mask = m_flags; mask; mask >>= 1) { - if (mask & 1u) - ++count; - } - return count; - } - protected: ValueType m_flags; ///< The flags. }; |
