Rose::BitOps::bits
Extract part of a value.
Synopsis
Declared in <src/Rose/BitOps.h>
template<typename Unsigned>
Unsigned
bits(
Unsigned src,
size_t least,
size_t greatest);
Description
Extracts the bits in the range least through (inclusive) and shifts them right by least bits. The least and greatest indices must be valid for src as defined by mask.
Return Value
Extracted bits.
Parameters
Name |
Description |
src |
Input value. |
least |
Least significant bit index. |
greatest |
Most significant bit index. |
Created with MrDocs