Template Function Rose::BitOps::signExtendLsb#
Defined in File BitOps.h
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
nbits of the input value to occupy the lower ordermbits of the output, wheremis greater than or equal tonand less than or equal to the number of bits in thesrcvalue.