Rose::BitOps::signExtendLsb
Sign extend part of value without affecting other bits.
Synopsis
Declared in <src/Rose/BitOps.h>
template<typename Unsigned>
Unsigned
signExtendLsb(
Unsigned src,
size_t n,
size_t m);
Description
Sign extends the low‐order n bits of the input value to occupy the lower order m bits of the output, where m is greater than or equal to n and less than or equal to the number of bits in the src value.
Return Value
Updated value.
Parameters
Name |
Description |
src |
Input value. |
n |
Width of the signed region. |
m |
Width of the output region. |
Created with MrDocs