ΒΆinline int32_t SignExtend32(uint32_t X,
                            unsigned int B)

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:758

Parameters

uint32_t X
unsigned int B