ΒΆtemplate <unsigned int N>
inline constexpr std::enable_if_t<(N < 64), bool>
isUInt(uint64_t X)

Description

Checks if an unsigned integer fits into the given bit width. This is written as two functions rather than as simply return N >= 64 || X < (UINT64_C(1) < < N); to keep MSVC from (incorrectly) warning on isUInt < 64> that we're shifting left too many places.

Declared at: llvm/include/llvm/Support/MathExtras.h:395

Templates

unsigned int N

Parameters

uint64_t X