11 inline static void* AlignDown(
const void* _input, uint32_t _alignment)
13 return reinterpret_cast<uint8_t*
>(
reinterpret_cast<const uintptr_t
>(_input) & ~static_cast<uintptr_t>(_alignment - 1));
16 inline static void* AlignUp(
const void* _input, uint32_t _alignment)
18 return AlignDown(reinterpret_cast<const uint8_t*>(_input) + _alignment - 1, _alignment);