Files
Lucas Chollet b37efc6925 Meta: Add a tool to compare our math functions against a trusted source
This tool runs a bunch of accuracy and performance tests on standard
math functions. The accuracy is measured against the MPFR library, which
provides results precise enough to be correctly rounded to double
precision floating points.

By default, the tool test the math functions from AK but a runtime flag
can be used to instead test the system's libm.

A few test cases are internally generated, but to get more precise
results the tool is capable of reading worst-cases files from the
CORE-MATH project. The location of the repository should be given with
the --core-math PATH option.

Heavily inspired by https://github.com/nico/js-math-bench.
2026-09-26 21:19:20 +02:00
..