mirror of
https://github.com/bkaradzic/bx.git
synced 2026-10-23 01:01:06 +00:00
Cleanup. (#468)
This commit is contained in:
committed by
GitHub
parent
5c218692de
commit
234f2fba71
@@ -31,14 +31,14 @@ namespace bx
|
||||
bool isDone() const;
|
||||
|
||||
/// Returns index of the current set bit.
|
||||
uint32_t getIndex() const;
|
||||
uint8_t getIndex() const;
|
||||
|
||||
/// Returns remaining mask, shifted so that the current set bit is bit 0.
|
||||
MaskT getMask() const;
|
||||
|
||||
private:
|
||||
MaskT m_mask;
|
||||
uint32_t m_idx;
|
||||
MaskT m_mask;
|
||||
uint8_t m_idx;
|
||||
};
|
||||
|
||||
/// Range-for iterator over set bits of a bit array, in index order. Dereferences to the bit
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace bx
|
||||
}
|
||||
|
||||
template<typename MaskT>
|
||||
inline uint32_t BitMaskToIndexIteratorT<MaskT>::getIndex() const
|
||||
inline uint8_t BitMaskToIndexIteratorT<MaskT>::getIndex() const
|
||||
{
|
||||
return m_idx;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user