Template Function Rose::BitOps::rotateRightLsb

Template Function Rose::BitOps::rotateRightLsb#

Function Documentation#

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

Rotate low-order bits right without affecting others.

Rotates the low-order w bits of src right by n bits without affecting the higher-order bits, and returns the result. The rotation amount is modulo w. If w is zero then the original value is returned.