MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / VmaAlignDown

Function VmaAlignDown

include/vk_mem_alloc.h:3673–3677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3671// Use types like uint32_t, uint64_t as T.
3672template <typename T>
3673static inline T VmaAlignDown(T val, T alignment)
3674{
3675 VMA_HEAVY_ASSERT(VmaIsPow2(alignment));
3676 return val & ~(alignment - 1);
3677}
3678
3679// Division with mathematical rounding to nearest number.
3680template <typename T>

Calls 1

VmaIsPow2Function · 0.85

Tested by

no test coverage detected