Template Function Rose::BitOps::mask#
Defined in File BitOps.h
Function Documentation#
-
template<typename Unsigned>
inline Unsigned Rose::BitOps::mask(size_t least, size_t greatest)# Generate a mask.
Returns a value where bits
leastthroughgreatest(inclusive) are set and all other bits are cleared. The specified indexes must be valid for the type ofx. In other words,greatestmust be less than the number of bits inxandgreatestmust be greater than or equal toleast.