This is a reshuffling of filenames, extensions, paths, make rules, just because I felt like it.
10 lines
175 B
C++
10 lines
175 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
template <typename T>
|
|
inline T * align_32byte(T * mem)
|
|
{
|
|
return reinterpret_cast<T *>((((reinterpret_cast<uint32_t>(mem) + 31) & ~31)));
|
|
}
|