1.4.4.54 libq_q31_Negate_q31 Function

Negate 32-bit 2s-complement fractional value with saturation.

Description

Function libq_q31_Negate_q31:

Negate 32-bit 2s-complement fractional value with saturation. The saturation is for handling the case where negating a MINFRACT32 is greater than MAXFRACT32, or the allowable range of values. This function relates to the ETSI L_negate function.

Returns

q31 result on range: MINFRACT32 <= result <= MAXFRACT32

C

q31 libq_q31_Negate_q31 (q31);