llvm::isShiftedInt

Checks if a signed 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
isShiftedInt(int64_t x);

Return Value

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

Parameters

NameDescription
xSigned value to test.