A library of C routines to perform fixed-point (Q-format) mathematical operations, suitable for Embedded DSP systems.
Features:
(1) Conversion from floating-point to fixed-point and vice versa (with or without rounding)
(2) Extracting integer-part and fractional-part of Q-number
(3) Add, Subtract, Multiply, Divide (different versions for dealing with rounding and saturation available)
(4) Trig functions: sin, cos, asin, acos, atan, atan2
(5) Sqrt, Abs, Magnitude-phase, Log, Exp
These details are provided for information only. No information here is legal advice and should not be used as such.