llvm::isIntN

Checks if an signed integer fits into the given (dynamic) bit width.

Synopsis

Declared in <llvm/Support/MathExtras.h>

constexpr
bool
isIntN(
    unsigned int N,
    int64_t x);

Return Value

True if x fits in an N-bit signed integer.

Parameters

NameDescription
NBit width to test against.
xSigned value to test.