#include <lib/sconfig.h>
#include <lib/salloc.h>
Include dependency graph for tlbitfield.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
class | TLDynamicBitField |
Dynamic-sized bitfield template. More... | |
class | TLStaticBitField |
Static bitfield template. More... | |
Defines | |
#define | _TemplateLibrary_BitField_H_ 1 |
Functions | |
template<typename T> uint | CountBitsSet (T x) |
Count number of bits set in the passed argument. | |
template<typename T> uint | CountBitsCleared (T x) |
Count number of bits cleared (unset) in the passed argument. | |
template<typename T> int | SearchFirstSetBit (T x) |
Search first set bit index. | |
template<typename T> int | SearchFirstClearedBit (T x) |
Search first cleared bit index. |
Definition in file tlbitfield.h.
|
Definition at line 19 of file tlbitfield.h. |
|
Count number of bits cleared (unset) in the passed argument.
Definition at line 65 of file tlbitfield.h. References CountBitsSet(), and uint. Referenced by TLDynamicBitField< T >::CountClr(), and TLStaticBitField< T, N >::CountClr(). |
|
Count number of bits set in the passed argument.
Definition at line 43 of file tlbitfield.h. References uint. Referenced by CountBitsCleared(), TLDynamicBitField< T >::CountSet(), and TLStaticBitField< T, N >::CountSet(). |
|
Search first cleared bit index.
Definition at line 104 of file tlbitfield.h. Referenced by TLDynamicBitField< T >::SearchFirstClr(), and TLStaticBitField< T, N >::SearchFirstClr(). |
|
Search first set bit index.
Definition at line 81 of file tlbitfield.h. Referenced by TLDynamicBitField< T >::SearchFirstSet(), and TLStaticBitField< T, N >::SearchFirstSet(). |