Template Function Rose::BitOps::bits

Template Function Rose::BitOps::bits#

Function Documentation#

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

Extract part of a value.

Extracts the bits in the range least through @greatest (inclusive) and shifts them right by least bits. The least and greatest indices must be valid for src as defined by mask.