mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
660ef41136
* cleanup * clean up file layout
9 lines
170 B
C++
9 lines
170 B
C++
#pragma once
|
|
|
|
template <typename T>
|
|
T align(T current, T alignment, T offset = 0) {
|
|
while ((current % alignment) != 0) {
|
|
current++;
|
|
}
|
|
return current + offset;
|
|
} |