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