Rose::BitOps::convertSigned
Sign extend or truncate a value.
Synopsis
Declared in <src/Rose/BitOps.h>
template<
typename UnsignedTarget,
typename UnsignedSource>
UnsignedTarget
convertSigned(UnsignedSource x);
Description
This is identical to convert except when the target value is wider than the source value the new bits of the return value are all set to the most significant bit of the source value.
Return Value
Converted value with sign extension when widening.
Parameters
Name |
Description |
x |
Input value. |
Created with MrDocs