Home
last modified time | relevance | path

Searched refs:aligned_size (Results 1 – 2 of 2) sorted by relevance

/arkcompiler/runtime_core/platforms/unix/libpandabase/
Dmem.cpp108 size_t aligned_size = (size + alignment_in_bytes - 1) & ~(alignment_in_bytes - 1); in AlignedAlloc() local
111 int r = posix_memalign(reinterpret_cast<void **>(&ret), alignment_in_bytes, aligned_size); in AlignedAlloc()
117 auto ret = aligned_alloc(alignment_in_bytes, aligned_size); in AlignedAlloc()
/arkcompiler/runtime_core/platforms/windows/libpandabase/
Dmem.cpp285 size_t aligned_size = (size + alignment_in_bytes - 1) & ~(alignment_in_bytes - 1); in AlignedAlloc() local
287 auto ret = _aligned_malloc(aligned_size, alignment_in_bytes); in AlignedAlloc()