Rose::BitOps::positionLsb
Generate a single‐bit mask without affecting the high‐order bits.
Synopsis
Declared in <src/Rose/BitOps.h>
template<typename Unsigned>
Unsigned
positionLsb(
Unsigned src,
size_t w,
size_t i);
Description
The low order w bits of src are cleared except bit i is set, and other bits are not affected.
Return Value
Updated value.
Parameters
Name |
Description |
src |
Input value. |
w |
Width of the low‐order region. |
i |
Bit index to set. |
Created with MrDocs