Searched refs:num_bits (Results 1 – 7 of 7) sorted by relevance
/art/runtime/gc/accounting/ |
D | bitmap.cc | 30 Bitmap* Bitmap::CreateFromMemMap(MemMap&& mem_map, size_t num_bits) { in CreateFromMemMap() argument 32 return new Bitmap(std::move(mem_map), num_bits); in CreateFromMemMap() 47 MemMap Bitmap::AllocateMemMap(const std::string& name, size_t num_bits) { in AllocateMemMap() argument 49 RoundUp(num_bits, kBitsPerBitmapWord) / kBitsPerBitmapWord * sizeof(uintptr_t), kPageSize); in AllocateMemMap() 62 Bitmap* Bitmap::Create(const std::string& name, size_t num_bits) { in Create() argument 63 MemMap mem_map = AllocateMemMap(name, num_bits); in Create() 67 return CreateFromMemMap(std::move(mem_map), num_bits); in Create() 87 const size_t num_bits = (cover_end - cover_begin) / kAlignment; in Create() local 88 MemMap mem_map = Bitmap::AllocateMemMap(name, num_bits); in Create() 90 return CreateFromMemMap(std::move(mem_map), cover_begin, num_bits); in Create() [all …]
|
D | bitmap.h | 39 static Bitmap* Create(const std::string& name, size_t num_bits); 44 static Bitmap* CreateFromMemMap(MemMap&& mem_map, size_t num_bits); 107 static MemMap AllocateMemMap(const std::string& name, size_t num_bits); 132 MemMap&& mem_map, uintptr_t cover_begin, size_t num_bits); 179 MemoryRangeBitmap(MemMap&& mem_map, uintptr_t begin, size_t num_bits) in MemoryRangeBitmap() argument 180 : Bitmap(std::move(mem_map), num_bits), in MemoryRangeBitmap() 182 cover_end_(begin + kAlignment * num_bits) {} in MemoryRangeBitmap()
|
/art/libartbase/base/ |
D | bit_memory_region.h | 163 size_t num_bits = bit_length - bit; in StoreBits() local 164 StoreBits(bit_offset + bit, src.LoadBits(bit, num_bits), num_bits); in StoreBits() 194 size_t num_bits = lhs.size_in_bits() - bit; in Compare() local 195 uint32_t lhs_bits = lhs.LoadBits(bit, num_bits); in Compare() 196 uint32_t rhs_bits = rhs.LoadBits(bit, num_bits); in Compare() 304 uint32_t num_bits = RoundUp(MinimumBitsToStore(value), kBitsPerByte); in WriteVarint() local 305 uint32_t header = kVarintSmallValue + num_bits / kBitsPerByte; in WriteVarint() 307 WriteBits(value, num_bits); in WriteVarint()
|
D | bit_vector.cc | 245 void BitVector::SetInitialBits(uint32_t num_bits) { in SetInitialBits() argument 247 if (num_bits == 0) { in SetInitialBits() 253 SetBit(num_bits - 1); in SetInitialBits() 257 for (idx = 0; idx < WordIndex(num_bits); idx++) { in SetInitialBits() 262 uint32_t rem_num_bits = num_bits & 0x1f; in SetInitialBits()
|
D | bit_table.h | 417 uint32_t Dedup(const void* bitmap, size_t num_bits) { in Dedup() argument 418 MemoryRegion region(const_cast<void*>(bitmap), BitsToBytesRoundUp(num_bits)); in Dedup() 419 DCHECK(num_bits == 0 || BitMemoryRegion(region).LoadBit(num_bits - 1) == 1); in Dedup() 420 DCHECK_EQ(BitMemoryRegion(region).LoadBits(num_bits, region.size_in_bits() - num_bits), 0u); in Dedup() 438 max_num_bits_ = std::max(max_num_bits_, num_bits); in Dedup() 469 size_t num_bits = std::max(expected.size_in_bits(), seen.size_in_bits()); in Encode() local 470 for (size_t b = 0; b < num_bits; b++) { in Encode()
|
D | bit_vector.h | 169 void SetInitialBits(uint32_t num_bits);
|
D | bit_utils.h | 503 inline static constexpr size_t BitsToBytesRoundUp(size_t num_bits) { in BitsToBytesRoundUp() argument 504 return RoundUp(num_bits, kBitsPerByte) / kBitsPerByte; in BitsToBytesRoundUp()
|