Template Function Rose::BitOps::shiftRight#
Defined in File BitOps.h
Function Documentation#
-
template<typename Unsigned>
inline Unsigned Rose::BitOps::shiftRight(Unsigned src, size_t n, bool b = false)# Right shift a value.
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 onb. Ifnis greater than or equal to the size ofsrcthen the return value has either all bits set or all bits cleared depending onb.