MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / AlignUp

Function AlignUp

Bcore/src/main/cpp/base/bit_utils.h:190–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

RoundUpFunction · 0.85

Tested by

no test coverage detected