Template Function Rose::BitOps::bitsLsb

Template Function Rose::BitOps::bitsLsb#

Function Documentation#

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

Extract part of a value limited by width.

Extracts the bits in the range least through @greatest (inclusive) and shifts them right by least bits. Any bits of src at index w or greater are treated as zeros.