Development status active Operating system | Written in C99 | |
Developer(s) Ben Brewer (aka flatmush) Stable release r64 / February 2, 2012; 5 years ago (2012-02-02) Repository code.google.com/archive/p/libfixmath/source/default/source |
libfixmath is a platform-independent fixed point maths library aimed at developers wanting to perform fast non-integer maths 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). 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.
Contents
History
libfixmath was originally developed by Ben Brewer (aka flatmush) and first released publicly as part of the Dingoo SDK. It has since been used to implement a software 3D graphics library called FGL.
Performance
For the most intensive function (atan2) benchmark results show the following results:
Note: These results were calculated using fixtest with caching optimizations turned off.
Licensing
libfixmath is released under the MIT License, a permissive free software licence, and is free software.