Template Function Rose::BitOps::positionLsb

Template Function Rose::BitOps::positionLsb#

Function Documentation#

template<typename Unsigned>
inline Unsigned Rose::BitOps::positionLsb(Unsigned src, size_t w, size_t i)#

Generate a single-bit mask without affecting the high-order bits.

The low order w bits of src are cleared except bit i is set, and other bits are not affected.