5.3.59 _Q16reciprocalQ15 Function
This function returns the reciprocal of a Q15 value. Since the input range lies in the -1 to +1 region, the output is always greater than the -1 or +1 region. So, Q16 format is used to represent the output.
Include
<libq.h>
Prototype
_Q16 _Q16reciprocalQ15(_Q15 x);
Argument
x |
a fixed-point number in Q15 format, which ranges from -215 to 215-1. The value of this argument ranges from -32768 to 32767. |
Return Value
This function returns the reciprocal of x
in Q16 format.
The value ranges from -2147483648 to 2147418112.