Template Function Rose::BitOps::signExtend

Template Function Rose::BitOps::signExtend#

Function Documentation#

template<typename Unsigned>
inline Unsigned Rose::BitOps::signExtend(Unsigned src, size_t n)#

Sign extend part of a value to the full width of the src type.

The low order n bits are treated as a signed integer and sign extended to fill the entire width of the return value.