encyclopegia.org

Libfixmath

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). 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.

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). 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. ==History== libfixmath was developed by Ben Brewer and first released publicly as part of the Dingoo SDK. It has since been used to implement a software 3D graphics library called FGL. ==Q16.16 functions== ==Other functions== ==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. ==See also== Binary scaling Fixed-point arithmetic Floating-point arithmetic List of open-source mathematical libraries Q (number format) ==References== ==External links== Project Page fr_math - Another fixed point math library with variable radix support and tutorials documentation Group Page/Mailing List

References

No reference rows published for this article.

Cite this article

MLA

"Libfixmath." encyclopegia.org, 2026, https://encyclopegia.org/wiki/libfixmath. Accessed 24 November 2026.

Chicago

"Libfixmath." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/libfixmath.

APA

encyclopegia.org. (2026). Libfixmath. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/libfixmath

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1353624257 · 0.5 · snapshot enwiki-001353624257

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.