alignToPowerOf2 overloads
Synopses
Declared in <llvm/Support/MathExtras.h>
Fallback when arguments aren't integral.
constexpr
uint64_t
alignToPowerOf2(
uint64_t Value,
uint64_t Align);
Will overflow only if result is not representable in T.
template<
typename U,
typename V,
typename T = common_uint<U, V>>
constexpr
T
alignToPowerOf2(
U Value,
V Align);
Return Value
Value rounded up to the next multiple of Align.
Parameters
Name |
Description |
Value |
Value to align upward. |
Align |
Power‐of‐two alignment; must be non‐zero. |
Created with MrDocs