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