llvm::isShiftedUInt

Checks if a unsigned integer is an N bit number shifted left by S.

Synopsis

Declared in <llvm/Support/MathExtras.h>

template<
    unsigned int N,
    unsigned int S>
constexpr
bool
isShiftedUInt(uint64_t x);

Return Value

True if x is an N-bit unsigned value shifted left by S.

Parameters

NameDescription
xUnsigned value to test.