Skip to content

IntegerOps::genMask

Generate a bitmask. The return value has bits lobit (inclusive) through hibit (inclusive) set, and all other bits are clear.

Synopsis

Declared in <src/Rose/StringUtility/IntegerOps.h>

template<typename T>
T
genMask(
    size_t lobit,
    size_t hibit);

Return Value

Bitmask value.

Parameters

Name

Description

lobit

Least significant bit index.

hibit

Most significant bit index.

Created with MrDocs