Template Function Rose::BitOps::rotateLeftLsb

Template Function Rose::BitOps::rotateLeftLsb#

Function Documentation#

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

Rotate low-order bits left without affecting others.

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