| 188 | |
| 189 | template<typename T> |
| 190 | inline T* AlignUp(T* x, uintptr_t n) { |
| 191 | return reinterpret_cast<T*>(RoundUp(reinterpret_cast<uintptr_t>(x), n)); |
| 192 | } |
| 193 | |
| 194 | template<int n, typename T> |
| 195 | constexpr bool IsAligned(T x) { |
no test coverage detected