2PL_FORCE_INLINE
void* plAllocPolicyAlignedHeap::Allocate(
size_t uiSize,
size_t uiAlign)
9 int res = posix_memalign(&ptr, uiAlign, uiSize);
10 PL_IGNORE_UNUSED(res);
11 PL_ASSERT_DEV(res == 0,
"posix_memalign failed with error: {0}", res);
13 PL_CHECK_ALIGNMENT(ptr, uiAlign);
18PL_ALWAYS_INLINE
void plAllocPolicyAlignedHeap::Deallocate(
void* ptr)
constexpr PL_ALWAYS_INLINE T Max(T f1, T f2)
Returns the greater value, f1 or f2.
Definition Math_inl.h:39