Searched refs:index_bits (Results 1 – 4 of 4) sorted by relevance
/art/runtime/ |
D | index_bss_mapping.h | 46 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;
|
D | index_bss_mapping.cc | 26 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()
|
D | oat_file.cc | 2184 size_t index_bits = IndexBssMappingEntry::IndexBits(number_of_indexes); in DCheckIndexToBssMapping() local 2189 uint32_t mask = entry.GetMask(index_bits); in DCheckIndexToBssMapping() 2191 size_t index_mask_span = (mask != 0u) ? 32u - index_bits - CTZ(mask) : 0u; in DCheckIndexToBssMapping() 2192 CHECK_LE(index_mask_span, entry.GetIndex(index_bits)); in DCheckIndexToBssMapping() 2194 CHECK_LT(prev_entry->GetIndex(index_bits), entry.GetIndex(index_bits) - index_mask_span); in DCheckIndexToBssMapping() 2199 CHECK_LT(prev_entry->GetIndex(index_bits), number_of_indexes); in DCheckIndexToBssMapping()
|
/art/oatdump/ |
D | oatdump.cc | 1752 size_t index_bits = IndexBssMappingEntry::IndexBits(number_of_indexes); in DumpBssEntries() local 1755 num_valid_indexes += 1u + POPCOUNT(entry.GetMask(index_bits)); in DumpBssEntries() 1760 uint32_t index = entry.GetIndex(index_bits); in DumpBssEntries() 1761 uint32_t mask = entry.GetMask(index_bits); in DumpBssEntries() 1764 size_t current_index = index - (32u - index_bits) + n; in DumpBssEntries()
|