Rose::BitOps::lowMask
Generate a value with low order bits set.
Synopsis
Declared in <src/Rose/BitOps.h>
template<typename Unsigned>
Unsigned
lowMask(size_t n);
Description
Returns a value whose n low‐order bits are set and all the other higher order bits are cleared. If n is greater than or equal to the size of the unsigned type then the returned value has all bits set. If n is zero then no bits are set in the return value.
Return Value
Mask value with low bits set.
Parameters
Name |
Description |
n |
Number of low‐order bits to set. |
Created with MrDocs