1.4.4.38 libq_q15_Negate_q15 Function
Negate 16-bit 2s-complement fractional value with saturation.
Description
Function libq_q15_Negate_q15:
Negate 16-bit 2s-complement fractional value with saturation. The saturation is for handling the case where negating a MINFRACT16 is greater than MAXFRACT16, or the allowable range of values. This function relates to the ETSI negate function.
Returns
q15 result on range: MINFRACT16 <= result <= MAXFRACT16
C
q15 libq_q15_Negate_q15 (q15);