Rose::BitOps::rotateLeft
Rotate bits left.
Synopsis
Declared in <src/Rose/BitOps.h>
template<typename Unsigned>
Unsigned
rotateLeft(
Unsigned src,
size_t n);
Description
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 src.
Return Value
Rotated value.
Parameters
Name |
Description |
src |
Input value. |
n |
Rotation count. |
Created with MrDocs