Extract a bit from an integer and shift it maximally.
- Template Parameters
-
| t_shift_right | If true, the bit value will be maximally shifted to the right (lowest bit) and to the left (highest bit) otherwise |
| T_Type | The type of the source integer. |
| T_ReturnType | The type of the returned integer |
- Parameters
-
| [in] | integer | The source integer |
| [in] | index | The index of the bit that should be extracted |
- Returns
- An integer containing the extracted and shifted bit value.