nn::math::MakeBits Function
template <typename T>
bit32 MakeBits(
T v,
int width,
int shift
);
| Name | Description |
|---|---|
| T | Type representing a bit array. |
| Name | Description | |
|---|---|---|
| in | v | Value to operate on. |
| in | width | Range to extract. |
| in | shift | A position relative to the lowest bit. |
Returns a 32-bit data value (bit array) after removing everything within that value but a specified range of bits.
Moves shift bits from the lowest bit of v, and from that position extracts the range specified by width.
CONFIDENTIAL