nn::math::MakeBits Functiontemplate <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. |
Formats a bit string.
Extracts the low-order width bit of v and creates a value shifted left by the number of bits given by shift.
You can basically think of it as reversing the processing of GetBits()
CONFIDENTIAL