template <typename T>
bit32 MakeBits(
T v,
int width,
int shift
);
| Name | Description |
|---|---|
| T | Type representing a bit array data |
| Name | Description | |
|---|---|---|
| in | v | Target value |
| in | width | The range to extract |
| in | shift | The position from the least significant bit |
Returns a 32-bit data leaving only the specified range.
Extracts a range specified by width starting at the position shifted by shift bits from the least significant bit for v.
CONFIDENTIAL