ΒΆinline uint64_t alignTo(uint64_t Value,
                        uint64_t Align,
                        uint64_t Skew = 0)

Description

Returns the next integer (mod 2**64) that is greater than or equal to\p Value and is a multiple of \p Align. \p Align must be non-zero. If non-zero \p Skew is specified, the return value will be a minimal integer that is greater than or equal to \p Value and equal to\p Align * N + \p Skew for some integer N. If \p Skew is larger than\p Align, its value is adjusted to '\p Skew mod \p Align'. Examples:

Declared at: llvm/include/llvm/Support/MathExtras.h:717

Parameters

uint64_t Value
uint64_t Align
uint64_t Skew = 0