Searched refs:RoundDown (Results 1 – 22 of 22) sorted by relevance
/art/runtime/gc/accounting/ |
D | space_bitmap_test.cc | 204 size_t offset = RoundDown(r.next() % heap_capacity, alignment); in RunTest() 215 const size_t offset = RoundDown(r.next() % heap_capacity, alignment); in RunTest() 217 const size_t end = offset + RoundDown(r.next() % (remain + 1), alignment); in RunTest()
|
D | card_table_test.cc | 65 size_t offset = RoundDown(addr - heap_begin_, CardTable::kCardSize); in PseudoRandomCard()
|
/art/libartbase/base/ |
D | bit_utils.h | 162 constexpr T RoundDown(T x, typename Identity<T>::type n) WARN_UNUSED; 165 constexpr T RoundDown(T x, typename Identity<T>::type n) { in RoundDown() function 175 return RoundDown(x + n - 1, n); in RoundUp() 193 return reinterpret_cast<T*>(RoundDown(reinterpret_cast<uintptr_t>(x), n)); in AlignDown()
|
D | utils.cc | 96 CHECK_EQ(RoundDown(start, page_size), RoundDown(limit - 1, page_size)) << "range spans pages"; in TouchAndFlushCacheLinesWithinPage()
|
/art/runtime/jit/ |
D | jit_memory_region.cc | 55 initial_capacity_ = RoundDown(initial_capacity, 2 * gPageSize); in Initialize() 56 max_capacity_ = RoundDown(max_capacity, 2 * gPageSize); in Initialize()
|
/art/runtime/gc/collector/ |
D | mark_compact-inl.h | 119 begin_bit_idx = RoundDown(begin_bit_idx, Bitmap::kBitsPerBitmapWord); in VisitLiveStrides() 343 for (size_t i = RoundDown(word_offset, kBitmapWordsPerVectorWord); i < word_offset; i++) { in CountLiveWordsUpto()
|
D | mark_compact.cc | 979 begin = RoundDown(reinterpret_cast<uintptr_t>(prev_obj) + gPageSize, gPageSize); in InitNonMovingSpaceFirstObjects()
|
/art/dex2oat/linker/arm/ |
D | relative_patcher_arm_base.cc | 83 max_next_offset_ = RoundDown(next_thunk.MaxNextOffset() - CodeSize(), alignment); in MakeSpaceBefore() 538 return RoundDown(patch_offset + MaxPositiveDisplacement(key), in CalculateMaxNextOffset()
|
D | relative_patcher_thumb2_test.cc | 601 RoundDown(method_after_thunk_header_offset - thunk_size, kArmCodeAlignment); in TEST_F()
|
/art/disassembler/ |
D | disassembler_arm.cc | 171 RoundDown(disasm_->GetCodeAddress(), vixl::aarch32::kRegSizeInBytes) + offset; in PrintLiteral()
|
/art/runtime/mirror/ |
D | string-alloc-inl.h | 220 const size_t max_length = RoundDown(max_alloc_length, kObjectAlignment / block_size); in Alloc()
|
/art/runtime/gc/space/ |
D | dlmalloc_space.cc | 52 end = reinterpret_cast<void*>(art::RoundDown(reinterpret_cast<uintptr_t>(end), art::gPageSize)); in DlmallocMadviseCallback()
|
D | image_space.cc | 116 r = RoundDown(r, kElfSegmentAlignment); in ChooseRelocationOffsetDelta()
|
/art/runtime/jni/ |
D | local_reference_table.cc | 349 GetEntry(RoundDown(first_free_index, kCheckJniEntriesPerReference) + serial_number)); in Add()
|
/art/dex2oat/linker/ |
D | oat_writer_test.cc | 78 uintptr_t oat_code_aligned = RoundDown(reinterpret_cast<uintptr_t>(quick_oat_code), 2); in CheckMethod()
|
/art/runtime/oat/ |
D | elf_file.cc | 1073 min_vaddr = RoundDown(min_vaddr, kElfSegmentAlignment); in GetLoadedAddressRange()
|
/art/dex2oat/linker/arm64/ |
D | relative_patcher_arm64_test.cc | 765 uint32_t thunk_offset = RoundDown( in TEST_F()
|
/art/openjdkjvmti/ |
D | OpenjdkJvmTi.cc | 1012 copy_size = art::RoundDown(copy_size, sizeof(void*)); in SetEventCallbacks()
|
/art/runtime/entrypoints/quick/ |
D | quick_trampoline_entrypoints.cc | 1651 sp8 = reinterpret_cast<uint8_t*>(RoundDown(reinterpret_cast<uintptr_t>(sp8), kStackAlignment)); in LayoutStackArgs()
|
/art/runtime/ |
D | runtime.cc | 1566 RoundDown(static_cast<uintptr_t>(Context::kBadGprBase), gPageSize); in Init()
|
/art/runtime/gc/ |
D | heap.cc | 4576 size_t next_tlab_size = RoundDown(alloc_size + kDefaultTLABSize, gPageSize) - alloc_size; in AllocWithNewTLAB()
|
/art/compiler/utils/riscv64/ |
D | assembler_riscv64.cc | 7561 RoundDown(kPositiveOffsetMaxSimpleAdjustment, 8); in AdjustBaseAndOffset() 7563 RoundDown(kPositiveOffsetMaxSimpleAdjustment, 4); in AdjustBaseAndOffset()
|