Template Function Rose::BitOps::shiftRightSigned(Unsigned, size_t, size_t)#
Defined in File BitOps.h
Function Documentation#
-
template<typename Unsigned>
inline Unsigned Rose::BitOps::shiftRightSigned(Unsigned src, size_t w, size_t n)# Right shift low bits without affecting other bits.
Right shift the low-order
wbits bynwithout affecting higher order bits. The width,w, must not be larger than thesrcwidth. If
is greater than or equal to
wthen thewlow order bits are set or cleared depending on bitw-1. Otherwise, thenlow order bits are discarded and thennew bits introduced at indexw-1are either zero or one depending on bitw-1.