Template Function ripple::bits¶
Function Documentation¶
-
template<typename
T
>
autoripple
::
bits
(T val, int start, int end) -> T¶ Gets the value of the bits between [start, end] (inclusive).
- Return
The value of the bits between the given [start, end] range.
- Parameters
val
: The value to get a bitrange from.start
: The index of the start bit.end
: The index of the end bit.
- Template Parameters
T
: The type of the input value.