Multiplies the current fixed-point value by another fixed-point value (a *= b).
This operator performs a 64-bit multiplication of the current fixed-point value and the provided fixed-point value, followed by a right shift of 16 bits. This operation effectively scales the result to fit within the 16.16 fixed-point format, where the first 16 bits represent the integer part and the last 16 bits represent the fractional part.
- Parameters
-
| fxp | The fixed-point value to multiply with. |
- Returns
- A reference to the current instance after performing the multiplication, allowing for chaining of operations.
- Note
- This operation modifies the current instance in place. Ensure that the input values are within the valid range to avoid overflow.