5.3.20 _Q15neg Function
This function negates a Q15 value with saturation. The value is saturated in the case where the input is -32768.
Include
<libq.h>
Prototype
_Q15 _Q15neg(_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 -x
in Q15 format. The value ranges
from -32768 to 32767.