Template Function Rose::BitOps::shiftRightSigned(Unsigned, size_t)#
Defined in File BitOps.h
Function Documentation#
-
template<typename Unsigned>
inline Unsigned Rose::BitOps::shiftRightSigned(Unsigned src, size_t n)# Right shift replicating MSB.
Shift all bits of the value right (to lower indices) by
n. Thenlow-order bits are discarded and the newnhigh-order bits are set or cleared depending on the original most significant bit. Ifnis greater than or equal to the size ofsrcthen the return value has either all bits set or all bits cleared depending on its original most significant bit.