MCPcopy Create free account
hub / github.com/capstone-engine/capstone / OffsetToAlignment

Function OffsetToAlignment

MathExtras.h:394–396  ·  view source on GitHub ↗

Returns the offset to 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.

Source from the content-addressed store, hash-verified

392/// or equal to \p Value and is a multiple of \p Align. \p Align must be
393/// non-zero.
394static inline uint64_t OffsetToAlignment(uint64_t Value, uint64_t Align) {
395 return RoundUpToAlignment(Value, Align) - Value;
396}
397
398/// abs64 - absolute value of a 64-bit int. Not all environments support
399/// "abs" on whatever their name for the 64-bit int type is. The absolute

Callers

nothing calls this directly

Calls 1

RoundUpToAlignmentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…