Rose::BitOps::signExtend
Sign extend part of a value to the full width of the src type.
Synopsis
Declared in <src/Rose/BitOps.h>
template<typename Unsigned>
Unsigned
signExtend(
Unsigned src,
size_t n);
Description
The low order n bits are treated as a signed integer and sign extended to fill the entire width of the return value.
Return Value
Signâextended value.
Parameters
Name |
Description |
src |
Input value. |
n |
Width of the signed region. |
Created with MrDocs