Sign‐extend the number in the bottom B bits of X to a 64‐bit integer. Requires B <= 64.
Synopses
Declared in <llvm/Support/MathExtras.h>
Sign‐extend the number in the bottom B bits of X to a 64‐bit integer. Requires B <= 64.
template<unsigned int B>
constexpr
int64_t
SignExtend64(uint64_t x);
Sign‐extend the number in the bottom B bits of X to a 64‐bit integer. Requires B <= 64.
int64_t
SignExtend64(
uint64_t X,
unsigned int B);
Return Value
The sign‐extended 64‐bit value.
Parameters
Name |
Description |
x |
Value whose low B bits are sign‐extended. |
X |
Value whose low |
B |
Bit width of the signed value embedded in |
Created with MrDocs