5.3.21 _Q15norm Function
This function finds the normalized value of a Q15 value.
Include
<libq.h>
Prototype
_Q15 _Q15norm(_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 square root of x
in Q15 format.
The value ranges from 16384 to -32767 for a positive number and -32768 to -16384 for a
negative number.