Lines Matching full:offset
48 bool TestBit(size_t offset) const in TestBit() argument
51 return data_.inlineWord_ & Mask(offset); in TestBit()
53 return data_.words_[Index(offset)] & Mask(IndexInWord(offset)); in TestBit()
57 void SetBit(size_t offset) in SetBit() argument
60 data_.inlineWord_ |= Mask(offset); in SetBit()
62 data_.words_[Index(offset)] |= Mask(IndexInWord(offset)); in SetBit()
66 void ClearBit(size_t offset) in ClearBit() argument
69 data_.inlineWord_ &= ~Mask(offset); in ClearBit()
71 data_.words_[Index(offset)] &= ~Mask(IndexInWord(offset)); in ClearBit()
133 size_t IndexInWord(size_t offset) const in IndexInWord() argument
135 return offset & BIT_PER_WORD_MASK; in IndexInWord()
138 size_t Index(size_t offset) const in Index() argument
140 return offset >> BIT_PER_WORD_LOG2; in Index()