Template Function Rose::BitOps::lowMask

Template Function Rose::BitOps::lowMask#

Function Documentation#

template<typename Unsigned>
inline Unsigned Rose::BitOps::lowMask(size_t n)#

Generate a value with low order bits set.

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.