Template Function Rose::BitOps::rotateLeft

Template Function Rose::BitOps::rotateLeft#

Function Documentation#

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

Rotate bits left.

Rotates the bits of src left (toward higher indices) by n bits. This is similar to shiftLeft except the high order bits that would normally be discarded are reintroduced in the low order positions. If n is zero then this is a no-op. The rotation amount is calculated modulo the width of #include <cstddef> src