Home
last modified time | relevance | path

Searched refs:RoundUp (Results 1 – 25 of 80) sorted by relevance

1234

/art/runtime/gc/space/
Dbump_pointer_space-inl.h30 num_bytes = RoundUp(num_bytes, kAlignment); in Alloc()
47 num_bytes = RoundUp(num_bytes, kAlignment); in AllocThreadUnsafe()
93 *usable_size = RoundUp(num_bytes, kAlignment); in AllocationSizeNonvirtual()
Dmalloc_space.cc88 *growth_limit = RoundUp(*growth_limit, kPageSize); in CreateMemMap()
89 *capacity = RoundUp(*capacity, kPageSize); in CreateMemMap()
123 growth_limit = RoundUp(growth_limit, kPageSize); in SetGrowthLimit()
166 SetEnd(reinterpret_cast<uint8_t*>(RoundUp(reinterpret_cast<uintptr_t>(End()), kPageSize))); in CreateZygoteSpace()
171 size_t size = RoundUp(Size(), kPageSize); in CreateZygoteSpace()
183 SetGrowthLimit(RoundUp(size, kPageSize)); in CreateZygoteSpace()
Dregion_space-inl.h29 num_bytes = RoundUp(num_bytes, kAlignment); in Alloc()
147 *usable_size = RoundUp(num_bytes, kAlignment); in AllocationSizeNonvirtual()
150 *usable_size = RoundUp(num_bytes, kRegionSize); in AllocationSizeNonvirtual()
262 return reinterpret_cast<mirror::Object*>(RoundUp(position, kAlignment)); in GetNextObject()
271 size_t num_regs = RoundUp(num_bytes, kRegionSize) / kRegionSize; in AllocLarge()
Dbump_pointer_space.cc29 capacity = RoundUp(capacity, kPageSize); in Create()
93 return reinterpret_cast<mirror::Object*>(RoundUp(position, kAlignment)); in GetNextObject()
141 bytes = RoundUp(bytes, kAlignment); in AllocBlock()
/art/compiler/utils/
Dswap_space.cc106 size = RoundUp(size, 8U); in Alloc()
135 size_t next_part = std::max(RoundUp(min_size, kPageSize), RoundUp(kMininumMapSize, kPageSize)); in NewFileChunk()
165 size = RoundUp(size, 8U); in Free()
Ddex_cache_arrays_layout-inl.h79 return RoundUp(array_size, kObjectAlignment); in ArraySize()
/art/runtime/
Dimage.cc51 CHECK_EQ(image_begin, RoundUp(image_begin, kPageSize)); in ImageHeader()
52 CHECK_EQ(oat_file_begin, RoundUp(oat_file_begin, kPageSize)); in ImageHeader()
53 CHECK_EQ(oat_data_begin, RoundUp(oat_data_begin, kPageSize)); in ImageHeader()
/art/runtime/gc/accounting/
Dbitmap.cc44 const size_t bitmap_size = RoundUp( in AllocateMemMap()
45 RoundUp(num_bits, kBitsPerBitmapWord) / kBitsPerBitmapWord * sizeof(uintptr_t), kPageSize); in AllocateMemMap()
/art/runtime/base/
Dscoped_arena_allocator.cc95 size_t rounded_bytes = RoundUp(bytes + kValgrindRedZoneBytes, 8); in AllocValgrind()
126 arena_stack_->top_ptr_ = mark_ptr_ + RoundUp(sizeof(ScopedArenaAllocator), 8); in Reset()
Dbit_utils.h115 static constexpr T RoundUp(T x, typename std::remove_reference<T>::type n) WARN_UNUSED;
118 static constexpr T RoundUp(T x, typename std::remove_reference<T>::type n) { in RoundUp() function
136 return reinterpret_cast<T*>(RoundUp(reinterpret_cast<uintptr_t>(x), n)); in AlignUp()
/art/compiler/jni/quick/x86/
Dcalling_convention_x86.cc188 return RoundUp(frame_data_size + handle_scope_size + SizeOfReturnValue(), kStackAlignment); in FrameSize()
192 return RoundUp(NumberOfOutgoingStackArgs() * kFramePointerSize, kStackAlignment); in OutArgSize()
/art/compiler/jni/quick/arm/
Dcalling_convention_arm.cc153 fpr_double_index = (std::max(fpr_double_index * 2, RoundUp(fpr_index, 2))) / 2; in EntrySpills()
264 return RoundUp(frame_data_size + handle_scope_size + SizeOfReturnValue(), kStackAlignment); in FrameSize()
268 return RoundUp(NumberOfOutgoingStackArgs() * kFramePointerSize + padding_, in OutArgSize()
/art/compiler/jni/quick/mips/
Dcalling_convention_mips.cc156 return RoundUp(frame_data_size + handle_scope_size + SizeOfReturnValue(), kStackAlignment); in FrameSize()
160 return RoundUp(NumberOfOutgoingStackArgs() * kFramePointerSize + padding_, kStackAlignment); in OutArgSize()
/art/compiler/jni/quick/mips64/
Dcalling_convention_mips64.cc157 return RoundUp(frame_data_size + handle_scope_size + SizeOfReturnValue(), kStackAlignment); in FrameSize()
161 return RoundUp(NumberOfOutgoingStackArgs() * kFramePointerSize, kStackAlignment); in OutArgSize()
/art/runtime/gc/allocator/
Drosalloc.h200 return RoundUp(numOfSlots[size_bracket_idx_], 32) / 32; in NumberOfBitmapVectors()
329 return RoundUp(size, 16); in RoundToBracketSize()
341 return RoundUp(size, 16) / 16 - 1; in SizeToIndex()
353 size_t bracket_size = RoundUp(size, 16); in SizeToIndexAndBracketSize()
596 return RoundUp(bytes, kPageSize); in UsableSize()
Ddlmalloc.cc65 start = reinterpret_cast<void*>(art::RoundUp(reinterpret_cast<uintptr_t>(start), art::kPageSize)); in DlmallocMadviseCallback()
Drosalloc.cc62 DCHECK_EQ(RoundUp(capacity, kPageSize), capacity); in RosAlloc()
63 DCHECK_EQ(RoundUp(max_capacity, kPageSize), max_capacity); in RosAlloc()
85 RoundUp(max_num_of_pages, kPageSize), in RosAlloc()
463 size_t num_pages = RoundUp(size, kPageSize) / kPageSize; in AllocLargeObject()
868 size_t num_vec = RoundUp(num_slots, 32) / 32; in Dump()
894 size_t num_vec = RoundUp(numOfSlots[idx], 32) / 32; in FreeSlot()
917 const size_t num_vec = RoundUp(num_slots, 32) / 32; in NumberOfFreeSlots()
937 const size_t num_vec = RoundUp(num_of_slots, 32) / 32; in MergeThreadLocalFreeBitMapToAllocBitMap()
1093 const size_t num_vec = RoundUp(num_slots, 32) / 32; in SetAllocBitMapBitsForInvalidSlots()
1125 size_t num_vec = RoundUp(num_slots, 32) / 32; in InspectAllSlots()
[all …]
/art/compiler/jni/quick/x86_64/
Dcalling_convention_x86_64.cc157 return RoundUp(frame_data_size + handle_scope_size + SizeOfReturnValue(), kStackAlignment); in FrameSize()
161 return RoundUp(NumberOfOutgoingStackArgs() * kFramePointerSize, kStackAlignment); in OutArgSize()
/art/runtime/arch/x86/
Dquick_method_frame_info_x86.h57 return RoundUp((POPCOUNT(X86CalleeSaveCoreSpills(type)) /* gprs */ + in X86CalleeSaveFrameSize()
/art/compiler/jni/quick/arm64/
Dcalling_convention_arm64.cc214 return RoundUp(frame_data_size + handle_scope_size + SizeOfReturnValue(), kStackAlignment); in FrameSize()
218 return RoundUp(NumberOfOutgoingStackArgs() * kFramePointerSize, kStackAlignment); in OutArgSize()
/art/runtime/arch/x86_64/
Dquick_method_frame_info_x86_64.h54 return RoundUp((POPCOUNT(X86_64CalleeSaveCoreSpills(type)) /* gprs */ + in X86_64CalleeSaveFrameSize()
/art/runtime/arch/mips/
Dquick_method_frame_info_mips.h51 return RoundUp((POPCOUNT(MipsCalleeSaveCoreSpills(type)) /* gprs */ + in MipsCalleeSaveFrameSize()
/art/runtime/gc/
Dheap-inl.h73 byte_count = RoundUp(byte_count, space::BumpPointerSpace::kAlignment); in AllocObjectWithAllocator()
235 alloc_size = RoundUp(alloc_size, space::BumpPointerSpace::kAlignment); in TryToAllocate()
321 alloc_size = RoundUp(alloc_size, space::RegionSpace::kAlignment); in TryToAllocate()
/art/runtime/arch/arm/
Dquick_entrypoints_cc_arm.cc55 fpr_double_index = std::max(fpr_double_index, RoundUp(fpr_index, 2)); in quick_invoke_reg_setup()
/art/runtime/arch/mips64/
Dquick_method_frame_info_mips64.h63 return RoundUp((POPCOUNT(Mips64CalleeSaveCoreSpills(type)) /* gprs */ + in Mips64CalleeSaveFrameSize()

1234