| 3671 | // Use types like uint32_t, uint64_t as T. |
| 3672 | template <typename T> |
| 3673 | static 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. |
| 3680 | template <typename T> |
no test coverage detected