5.3 <libq.h> Mathematical Functions

The header file libq.h consists of macro definitions and various functions that calculate fixed-point mathematical operations.

Q31 Functions: Many of these functions use a fixed-point Q31 (1.31) format. The range of values used by each function may vary and is dependent on the specific implementation. For detailed information on the input and output value ranges, please refer to the respective function descriptions below.