Rose::BitOps::rotateLeftLsb
Rotate low‐order bits left without affecting others.
Synopsis
Declared in <src/Rose/BitOps.h>
template<typename Unsigned>
Unsigned
rotateLeftLsb(
Unsigned src,
size_t w,
size_t n);
Description
Rotates the low‐order w bits of src left by n bits without affecting the other bits, and returns the result. The rotation amount is modulo w. If w is zero then the original value is returned.
Return Value
Updated value.
Parameters
Name |
Description |
src |
Input value. |
w |
Width of the low‐order region. |
n |
Rotation count. |
Created with MrDocs