1.4.4.46 libq_q31_Abs_q31 Function
Saturated Absolute value.
Description
Function libq_q31_Abs_q31:
Creates a saturated Absolute value. It takes the absolute value of the 32-bit 2s-complement fractional input with saturation. The saturation is for handling the case where taking the absolute value of MINFRACT32 is greater than MAXFRACT32, or the allowable range of 32-bit values.
This function relates to the ETSI L_abs function.
Returns
q31 result - abs(a) <= MAXFRACT32
C
q31 libq_q31_Abs_q31 (q31);