Lines Matching refs:bits
57 num_leading_bits = start_offset.bits() % 8; in GenBounds()
60 num_leading_bits = GetShiftBits(end_offset.bits() + size.bits()); in GenBounds()
61 Size byte_offset = Size(num_leading_bits + size.bits()) + end_offset; in GenBounds()
74 std::string extract_type = util::GetTypeForSize(size.bits() + num_leading_bits); in GenExtractor()
82 if (util::RoundSizeUp(size.bits()) != size.bits()) { in GenExtractor()
84 for (int i = 0; i < size.bits(); i++) { in GenExtractor()
116 return util::RoundSizeUp(GetSize().bits()) != GetSize().bits(); in HasParameterValidator()
120 s << "ASSERT(" << GetName() << " < (static_cast<uint64_t>(1) << " << GetSize().bits() << "));"; in GenParameterValidator()
124 if (GetSize().bits() == 8) { in GenInserter()
127 s << "insert(" << GetName() << "_, i," << GetSize().bits() << ");"; in GenInserter()
153 num_leading_bits = start_offset.bits() % 8; in GetRustBitOffset()
155 num_leading_bits = GetShiftBits(end_offset.bits() + size.bits()); in GetRustBitOffset()
156 Size byte_offset = Size(num_leading_bits + size.bits()) + end_offset; in GetRustBitOffset()
197 if (util::RoundSizeUp(size.bits()) != size.bits()) { in GenRustGetter()
199 for (int i = 0; i < size.bits(); i++) { in GenRustGetter()
226 if (util::RoundSizeUp(size.bits()) != size.bits()) { in GenRustWriter()
228 for (int i = 0; i < size.bits(); i++) { in GenRustWriter()