ΒΆtemplate <unsigned int N>
inline constexpr
typename std::enable_if<(N < 64), bool>::type
isUInt(uint64_t X)
template <unsigned int N>
inline constexpr
typename std::enable_if<(N < 64), bool>::type
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:368
Templates
- unsigned int N
Parameters
- uint64_t X