Skip to content

IntegerOps::signExtend

Sign extend value. If the bit FromBits-1 is set set for value, then the result will have bits FromBits through ToBits-1 also set (other bits are unchanged). If ToBits is less than or equal to FromBits then nothing happens.

Synopsis

Declared in <src/Rose/StringUtility/IntegerOps.h>

template<
    size_t FromBits,
    size_t ToBits,
    typename T>
T
signExtend(T value);

Return Value

Sign-extended value. @{

Parameters

Name Description
value Input value.

Created with MrDocs