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

Function AlignDown

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

Source from the content-addressed store, hash-verified

180
181template<typename T>
182inline T* AlignDown(T* x, uintptr_t n) {
183 return reinterpret_cast<T*>(RoundDown(reinterpret_cast<uintptr_t>(x), n));
184}
185
186template<typename T>
187inline T* AlignUp(T* x, uintptr_t n) WARN_UNUSED;

Callers 1

Calls 1

RoundDownFunction · 0.85

Tested by

no test coverage detected