ΒΆtemplate <unsigned int B>
inline constexpr int32_t SignExtend32(uint32_t X)
template <unsigned int B>
inline constexpr int32_t SignExtend32(uint32_t X)
Description
Sign-extend the number in the bottom B bits of X to a 32-bit integer. Requires 0 < B < = 32.
Declared at: llvm/include/llvm/Support/MathExtras.h:750
Templates
- unsigned int B
Parameters
- uint32_t X