jak-project/common/util/math_util.h
water111 660ef41136
Update documentation and clean up (#129)
* cleanup

* clean up file layout
2020-11-21 12:52:38 -05:00

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