#pragma once #include template constexpr inline T * align_32byte(T * mem) { return reinterpret_cast((((reinterpret_cast(mem) + 31) & ~31))); } constexpr inline uint32_t align_32byte(uint32_t mem) { return (mem + 31) & ~31; }