Lines Matching refs:WordWidth
61 static unsigned constexpr WordWidth = CHAR_BIT*sizeof(WordType); member
62 static unsigned constexpr NumWords = Capacity/WordWidth;
63 static_assert(NumWords*WordWidth == Capacity,
91 return (Words[T.SimpleTy / WordWidth] >> (T.SimpleTy % WordWidth)) & 1; in count()
95 Words[T.SimpleTy / WordWidth] |= WordType(1) << (T.SimpleTy % WordWidth); in insert()
105 Words[T.SimpleTy / WordWidth] &= ~(WordType(1) << (T.SimpleTy % WordWidth)); in erase()
146 unsigned SkipWords = P / WordWidth; in find_from_pos()
147 unsigned SkipBits = P % WordWidth; in find_from_pos()
148 unsigned Count = SkipWords * WordWidth; in find_from_pos()
154 W &= maskLeadingOnes<WordType>(WordWidth-SkipBits); in find_from_pos()
157 Count += WordWidth; in find_from_pos()
165 Count += WordWidth; in find_from_pos()