Template Function Rose::BitOps::rotateRight

Template Function Rose::BitOps::rotateRight#

Function Documentation#

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

Rotate bits right.

Rotates the bits of src right (toward lower indices) by n bits. This is similar to shiftRight except the low order bits that would normally be discarded are reintroduced in the high order positions. If n is zero then this is a no-op. The rotation amount is calculated modulo the width of src.