Template Function Rose::BitOps::highMask

Template Function Rose::BitOps::highMask#

Function Documentation#

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

Generate a value with high order bits set.

Returns a value whose n high-order bits are set and the other low 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.