7template <TUINT NUM_BITS>
27 TASSERT( a_iBitNum < NUM_BITS );
29 TUINT uiBit = 1 << ( a_iBitNum % NUM_BITS );
31 if ( a_bSet ) m_Values[ a_iBitNum /
MIN_NUM_BITS ] |= uiBit;
39 TASSERT( a_iBitNum < NUM_BITS );
41 return ( m_Values[ a_iBitNum /
MIN_NUM_BITS ] & ( 1 << ( a_iBitNum % NUM_BITS ) ) ) != 0;
#define TOSHI_NAMESPACE_START
#define TOSHI_NAMESPACE_END
#define T2_FOREACH_ARRAY(arrName, iteratorName)
void Set(TINT a_iBitNum, TBOOL a_bSet)
static constexpr TUINT BIT_SUBNUM_MASK
static constexpr TUINT MIN_NUM_BITS
TBOOL IsSet(TINT a_iBitNum) const