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