IntegerOps::genMask
genMask overloads
Synopses
Declared in <src/Rose/StringUtility/IntegerOps.h>
Bitmask with bits 0 through N‐1 set.
template<typename T>
T
genMask(size_t n);
Generate a bitmask. The return value has bits lobit (inclusive) through hibit (inclusive) set, and all other bits are clear.
template<typename T>
T
genMask(
size_t lobit,
size_t hibit);
Return Value
Bitmask value.
Parameters
Name |
Description |
n |
Number of low bits to set. |
lobit |
Least significant bit index. |
hibit |
Most significant bit index. |
Created with MrDocs