Extract a bit from an integer and store it with an optional shift in a new integer.
- Template Parameters
-
| t_index | The index of the bit that should be extracted |
| t_shift | An integer that specifies the direction and magnitude that the bit should be shifted. Positive values will shift it to the left (higher values) while negative values will shift the bit to the right (lower values). |
| T_Type | The type of the source integer. |
| T_ReturnType | The type of the returned integer |
- Parameters
-
| [in] | integer | The source integer |
- Returns
- An integer containing the extracted and shifted bit value.