This article relies excessively on references to primary sources.(January 2023) |
Developer(s) | Ben Brewer |
---|---|
Stable release | r64
/ February 2, 2012 |
Repository |
|
Written in | C99 |
Operating system | Cross-platform |
Type | fixed-point math library |
License | MIT |
Website | code |
libfixmath is a platform-independent fixed-point math library aimed at developers wanting to perform fast non-integer math on platforms lacking a (or with a low performance) FPU. It offers developers a similar interface to the standard math.h functions for use on Q16.16 fixed-point numbers. libfixmath has no external dependencies other than stdint.h and a compiler which supports 64-bit integer arithmetic (such as GCC).[1] Conditional compilation options exist to remove the requirement for a 64-bit capable compiler as many compilers for microcontrollers and DSPs do not support 64-bit arithmetic.[2]