Home
last modified time | relevance | path

Searched refs:index_bits (Results 1 – 4 of 4) sorted by relevance

/art/runtime/
Dindex_bss_mapping.h46 static uint32_t IndexMask(size_t index_bits) { in IndexMask()
47 DCHECK_LE(index_bits, 32u); in IndexMask()
50 return (index_bits == 32u) ? kAllOnes : ~(kAllOnes << index_bits); in IndexMask()
53 uint32_t GetIndex(size_t index_bits) const { in GetIndex()
54 return index_and_mask & IndexMask(index_bits); in GetIndex()
57 uint32_t GetMask(size_t index_bits) const { in GetMask()
58 DCHECK_LT(index_bits, 32u); // GetMask() is valid only if there is at least 1 mask bit. in GetMask()
59 return index_and_mask >> index_bits; in GetMask()
62 size_t GetBssOffset(size_t index_bits, uint32_t index, size_t slot_size) const;
Dindex_bss_mapping.cc26 size_t IndexBssMappingEntry::GetBssOffset(size_t index_bits, in GetBssOffset() argument
29 uint32_t diff = GetIndex(index_bits) - index; in GetBssOffset()
33 size_t mask_bits = 32u - index_bits; in GetBssOffset()
57 size_t index_bits = IndexBssMappingEntry::IndexBits(number_of_indexes); in GetBssOffset() local
58 uint32_t index_mask = IndexBssMappingEntry::IndexMask(index_bits); in GetBssOffset()
69 return entry.GetBssOffset(index_bits, index, slot_size); in GetBssOffset()
Doat_file.cc2198 size_t index_bits = IndexBssMappingEntry::IndexBits(number_of_indexes); in DCheckIndexToBssMapping() local
2203 uint32_t mask = entry.GetMask(index_bits); in DCheckIndexToBssMapping()
2205 size_t index_mask_span = (mask != 0u) ? 32u - index_bits - CTZ(mask) : 0u; in DCheckIndexToBssMapping()
2206 CHECK_LE(index_mask_span, entry.GetIndex(index_bits)); in DCheckIndexToBssMapping()
2208 CHECK_LT(prev_entry->GetIndex(index_bits), entry.GetIndex(index_bits) - index_mask_span); in DCheckIndexToBssMapping()
2213 CHECK_LT(prev_entry->GetIndex(index_bits), number_of_indexes); in DCheckIndexToBssMapping()
/art/oatdump/
Doatdump.cc1753 size_t index_bits = IndexBssMappingEntry::IndexBits(number_of_indexes); in DumpBssEntries() local
1756 num_valid_indexes += 1u + POPCOUNT(entry.GetMask(index_bits)); in DumpBssEntries()
1761 uint32_t index = entry.GetIndex(index_bits); in DumpBssEntries()
1762 uint32_t mask = entry.GetMask(index_bits); in DumpBssEntries()
1765 size_t current_index = index - (32u - index_bits) + n; in DumpBssEntries()