Lines Matching refs:offset
61 bool TestBit(size_t offset) const
64 return data_.inlineWord_ & Mask(offset);
66 ASSERT(wordCount_ > Index(offset));
67 return data_.words_[Index(offset)] & Mask(IndexInWord(offset));
71 void SetBit(size_t offset)
74 data_.inlineWord_ |= Mask(offset);
76 ASSERT(wordCount_ > Index(offset));
77 data_.words_[Index(offset)] |= Mask(IndexInWord(offset));
81 void ClearBit(size_t offset)
84 data_.inlineWord_ &= ~Mask(offset);
86 ASSERT(wordCount_ > Index(offset));
87 data_.words_[Index(offset)] &= ~Mask(IndexInWord(offset));
185 size_t IndexInWord(size_t offset) const
187 return offset & BIT_PER_WORD_MASK;
190 size_t Index(size_t offset) const
192 return offset >> BIT_PER_WORD_LOG2;