llvm::offsetToAlignment

Returns the offset to the next integer (mod 2**64) that is greater than or equal to Value and is a multiple of Align.

Synopsis

Declared in <llvm/Support/Alignment.h>

uint64_t
offsetToAlignment(
    uint64_t Value,
    Align Alignment);

Return Value

The number of bytes to add to Value to reach the next aligned value.

Parameters

NameDescription
ValueStarting value.
AlignmentAlignment that the result must be a multiple of.