Lines Matching refs:unit_offset
38 std::size_t unit_offset = pos % 32;
39 units_[unit_id] &= ~(mask_ << unit_offset);
40 units_[unit_id] |= (value & mask_) << unit_offset;
41 if ((unit_offset + num_bits_per_int_) > 32) {
42 units_[unit_id + 1] &= ~(mask_ >> (32 - unit_offset));
43 units_[unit_id + 1] |= (value & mask_) >> (32 - unit_offset);
51 std::size_t unit_offset = pos % 32;
52 if ((unit_offset + num_bits_per_int_) <= 32) {
53 return (units_[unit_id] >> unit_offset) & mask_;
55 return ((units_[unit_id] >> unit_offset)
56 | (units_[unit_id + 1] << (32 - unit_offset))) & mask_;