View on GitHub

FPM

C++ header-only fixed-point math library

Performance

The image below shows the approximate performance of:

The graph below plots the average number of nanoseconds a single operation takes: lower is better. The data was collected with Google Benchmark on an Intel Core i7-5820K, 3.3GHz.

The results show the following:

Notes

For a fair comparison, libfixmath was compiled with FIXMATH_NO_CACHE. It should also have been compiled with FIXMATH_NO_OVERFLOW (since fpm does not detect overflow), but libfixmath failed to compile with that option.