dreamcast/align.hpp
Zack Buhman 25e299feba new "example" directory
This is a reshuffling of filenames, extensions, paths, make rules,
just because I felt like it.
2023-12-12 21:50:39 +08:00

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)));
}