Template Function Rose::BitOps::maskLsb

Template Function Rose::BitOps::maskLsb#

Function Documentation#

template<typename Unsigned>
inline Unsigned Rose::BitOps::maskLsb(Unsigned src, size_t w, size_t least, size_t greatest)#

Generate a mask without affecting other bits.

Generates a mask limited to the low order w bits without affecting the other bits of src.