Searched refs:bit_mask (Results 1 – 2 of 2) sorted by relevance
43 uint16_t bit_mask = *block; in GetOffset() local45 bit_mask = (bit_mask << kBitsPerByte) | *block; in GetOffset()47 if ((bit_mask & (1 << bit_index)) == 0) { in GetOffset()53 size_t count = POPCOUNT(static_cast<uintptr_t>(bit_mask) << (kBitsPerIntPtrT - 1 - bit_index)); in GetOffset()101 uint16_t bit_mask = 0u; in Build() local104 bit_mask |= 1 << i; in Build()108 out_data->push_back(static_cast<uint8_t>(bit_mask >> kBitsPerByte)); in Build()109 out_data->push_back(static_cast<uint8_t>(bit_mask)); in Build()
115 uint8_t bit_mask; in LoadBit() local116 uint8_t byte = *ComputeBitPointer(bit_offset, &bit_mask); in LoadBit()117 return byte & bit_mask; in LoadBit()121 uint8_t bit_mask; in StoreBit() local122 uint8_t* byte = ComputeBitPointer(bit_offset, &bit_mask); in StoreBit()124 *byte |= bit_mask; in StoreBit()126 *byte &= ~bit_mask; in StoreBit()205 ALWAYS_INLINE uint8_t* ComputeBitPointer(uintptr_t bit_offset, uint8_t* bit_mask) const { in ComputeBitPointer() argument207 *bit_mask = (1U << bit_remainder); in ComputeBitPointer()