Template Function Rose::BitOps::signExtendLsb

Template Function Rose::BitOps::signExtendLsb#

Function Documentation#

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

Sign extend part of value without affecting other bits.

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.