Top Qs
Timeline
Chat
Perspective

Libfixmath

From Wikipedia, the free encyclopedia

Remove ads

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]

Quick Facts Developer(s), Stable release ...
Remove ads
Remove ads

History

libfixmath was developed by Ben Brewer and first released publicly as part of the Dingoo SDK.[3] It has since been used to implement a software 3D graphics library called FGL.[4]

Q16.16 functions

More information Name, Description ...
Remove ads

Other functions

More information Name, Description ...

Performance

For the most intensive function (atan2) benchmark results show the following results:

More information Name, Time Compared to Float ...

Note: These results were calculated using fixtest with caching optimizations turned off.[5]

Licensing

libfixmath is released under the MIT License, a permissive free software licence, and is free software.

See also

References

Loading content...
Loading content...
Loading related searches...

Wikiwand - on

Seamless Wikipedia browsing. On steroids.

Remove ads