Template Function Rose::BitOps::rotateRight#
Defined in File BitOps.h
Function Documentation#
-
template<typename Unsigned>
inline Unsigned Rose::BitOps::rotateRight(Unsigned src, size_t n)# Rotate bits right.
Rotates the bits of
srcright (toward lower indices) bynbits. This is similar to shiftRight except the low order bits that would normally be discarded are reintroduced in the high order positions. Ifnis zero then this is a no-op. The rotation amount is calculated modulo the width ofsrc.