Searched refs:GetAlignmentInBytes (Results 1 – 5 of 5) sorted by relevance
/arkcompiler/runtime_core/libpandabase/mem/ |
D | arena-inl.h | 31 startPos_(ToVoidPtr(AlignUp(ToUintPtr(buff), GetAlignmentInBytes(start_alignment)))), in Arena() 35 … ASSERT(ToUintPtr(buff) == AlignUp(ToUintPtr(buff), GetAlignmentInBytes(ARENA_DEFAULT_ALIGNMENT))); in Arena() 50 ret = std::align(GetAlignmentInBytes(alignment), size, curPos_, free_size); in Alloc() 61 ASSERT(AlignUp(ToUintPtr(curPos_), GetAlignmentInBytes(alignment)) == ToUintPtr(curPos_)); in AlignedAlloc() 62 ASSERT(AlignUp(size, GetAlignmentInBytes(alignment)) == size); in AlignedAlloc()
|
D | arena_allocator.h | 90 AlignUp(sizeof(size_t), GetAlignmentInBytes(DEFAULT_ARENA_ALIGNMENT)); in New() 135 void *ret = std::align(GetAlignmentInBytes(align), size, new_pos, free_size);
|
D | mem.h | 77 constexpr size_t GetAlignmentInBytes(const Alignment LOG_ALIGNMENT) in GetAlignmentInBytes() function 132 constexpr size_t DEFAULT_ALIGNMENT_IN_BYTES = GetAlignmentInBytes(DEFAULT_ALIGNMENT);
|
/arkcompiler/runtime_core/libpandabase/tests/ |
D | arena_test.cpp | 89 …static constexpr size_t ALLOC_SIZE = AlignUp(ARENA_SIZE / 2, GetAlignmentInBytes(ARENA_DEFAULT_ALI… in TEST_F() 91 …static constexpr size_t ALIGNED_ALLOC_SIZE = AlignUp(ALLOC_SIZE, GetAlignmentInBytes(ARENA_ALIGNME… in TEST_F() 99 …static constexpr size_t ALLOC_SIZE = AlignUp(ARENA_SIZE / 3, GetAlignmentInBytes(ARENA_DEFAULT_ALI… in TEST_F() 101 …static constexpr size_t ALIGNED_ALLOC_SIZE = AlignUp(ALLOC_SIZE, GetAlignmentInBytes(ARENA_ALIGNME… in TEST_F()
|
D | arena_allocator_test.cpp | 84 size_t mask = GetAlignmentInBytes(align) - 1; in AllocateWithAlignment() 124 size_t mask = GetAlignmentInBytes(static_cast<Alignment>(align)) - 1; in AllocateWithDiffAlignment() 180 ASSERT_TRUE(IsAligned(addr, GetAlignmentInBytes(DEFAULT_ARENA_ALIGNMENT))); 183 ASSERT_TRUE(IsAligned(addr, GetAlignmentInBytes(DEFAULT_ARENA_ALIGNMENT))); 192 …ASSERT_NE(tmp = aa.Alloc(DEFAULT_ARENA_SIZE - AlignUp(sizeof(Arena), GetAlignmentInBytes(DEFAULT_A… 451 size_t mask = GetAlignmentInBytes(align) - 1; 468 size_t mask = GetAlignmentInBytes(align) - 1;
|