Home
last modified time | relevance | path

Searched refs:num_bits (Results 1 – 10 of 10) sorted by relevance

/art/runtime/gc/accounting/
Dbitmap.cc31 Bitmap* Bitmap::CreateFromMemMap(MemMap&& mem_map, size_t num_bits) { in CreateFromMemMap() argument
33 return new Bitmap(std::move(mem_map), num_bits); in CreateFromMemMap()
36 Bitmap::Bitmap(MemMap&& mem_map, size_t num_bits) in Bitmap() argument
39 bitmap_numbits_(num_bits) { in Bitmap()
41 CHECK_NE(num_bits, 0U); in Bitmap()
48 MemMap Bitmap::AllocateMemMap(const std::string& name, size_t num_bits) { in AllocateMemMap() argument
50 RoundUp(num_bits, kBitsPerBitmapWord) / kBitsPerBitmapWord * sizeof(uintptr_t), gPageSize); in AllocateMemMap()
63 Bitmap* Bitmap::Create(const std::string& name, size_t num_bits) { in Create() argument
64 MemMap mem_map = AllocateMemMap(name, num_bits); in Create()
68 return CreateFromMemMap(std::move(mem_map), num_bits); in Create()
[all …]
Dbitmap.h41 static Bitmap* Create(const std::string& name, size_t num_bits);
46 static Bitmap* CreateFromMemMap(MemMap&& mem_map, size_t num_bits);
107 static MemMap AllocateMemMap(const std::string& name, size_t num_bits);
134 MemMap&& mem_map, uintptr_t cover_begin, size_t num_bits);
199 MemoryRangeBitmap(MemMap&& mem_map, uintptr_t begin, size_t num_bits) in MemoryRangeBitmap() argument
200 : Bitmap(std::move(mem_map), num_bits), in MemoryRangeBitmap()
/art/libartbase/base/
Dbit_memory_region.h168 VisitChunks([this, &src](size_t offset, size_t num_bits, [[maybe_unused]] size_t value) in CopyBits()
170 StoreChunk(offset, src.LoadBits(offset, num_bits), num_bits); in CopyBits()
178 VisitChunks([this, &src](size_t offset, size_t num_bits, size_t value) ALWAYS_INLINE { in AndBits()
179 StoreChunk(offset, value & src.LoadBits(offset, num_bits), num_bits); in AndBits()
187 VisitChunks([this, &src](size_t offset, size_t num_bits, size_t value) ALWAYS_INLINE { in OrBits()
188 StoreChunk(offset, value | src.LoadBits(offset, num_bits), num_bits); in OrBits()
196 VisitChunks([this, &src](size_t offset, size_t num_bits, size_t value) ALWAYS_INLINE { in XorBits()
197 StoreChunk(offset, value ^ src.LoadBits(offset, num_bits), num_bits); in XorBits()
205 VisitChunks([&]([[maybe_unused]] size_t offset, [[maybe_unused]] size_t num_bits, size_t value) in PopCount()
221 []([[maybe_unused]] size_t offset, [[maybe_unused]] size_t num_bits, size_t value) in HasAllBitsClear()
[all …]
Dleb128.h38 const size_t num_bits = (sizeof(T) * 8); in DecodeLeb128Helper() local
40 const size_t max_bytes = (num_bits + 6u) / 7u; in DecodeLeb128Helper()
53 int shift = num_bits - (index + 1) * 7; in DecodeLeb128Helper()
149 uint32_t num_bits = 1 /* we need to encode the sign bit */ + 6 + 64 - CLZ(bits_to_encode | 1U); in SignedLeb128Size() local
151 return (num_bits * 37) >> 8; in SignedLeb128Size()
Dbit_vector.cc244 void BitVector::SetInitialBits(uint32_t num_bits) { in SetInitialBits() argument
246 if (num_bits == 0) { in SetInitialBits()
252 SetBit(num_bits - 1); in SetInitialBits()
256 for (idx = 0; idx < WordIndex(num_bits); idx++) { in SetInitialBits()
261 uint32_t rem_num_bits = num_bits & 0x1f; in SetInitialBits()
Dbit_table.h416 uint32_t Dedup(const void* bitmap, size_t num_bits) { in Dedup() argument
417 MemoryRegion region(const_cast<void*>(bitmap), BitsToBytesRoundUp(num_bits)); in Dedup()
418 DCHECK(num_bits == 0 || BitMemoryRegion(region).LoadBit(num_bits - 1) == 1); in Dedup()
419 DCHECK_EQ(BitMemoryRegion(region).LoadBits(num_bits, region.size_in_bits() - num_bits), 0u); in Dedup()
437 max_num_bits_ = std::max(max_num_bits_, num_bits); in Dedup()
470 size_t num_bits = std::max(expected.size_in_bits(), seen.size_in_bits()); in Encode() local
471 for (size_t b = 0; b < num_bits; b++) { in Encode()
Dbit_vector.h181 void SetInitialBits(uint32_t num_bits);
Dbit_utils.h512 inline static constexpr size_t BitsToBytesRoundUp(size_t num_bits) { in BitsToBytesRoundUp() argument
513 return RoundUp(num_bits, kBitsPerByte) / kBitsPerByte; in BitsToBytesRoundUp()
/art/runtime/jit/
Dprofiling_info.cc191 uint32_t num_bits = MinimumBitsToStore(insns_size - 1); in MaxDexPcEncodingDepth() local
195 num_bits += MinimumBitsToStore(inline_max_code_units); in MaxDexPcEncodingDepth()
196 } while (num_bits <= BitSizeOf<uint32_t>()); in MaxDexPcEncodingDepth()
/art/runtime/oat/
Dstack_map.cc170 size_t num_bits; in CollectSizeStats() local
171 CodeInfo code_info(code_info_data, &num_bits, [&](size_t i, auto* table, BitMemoryRegion region) { in CollectSizeStats()
185 stats.AddBytes(BitsToBytesRoundUp(num_bits)); in CollectSizeStats()