FastLED 3.10.6
Loading...
Searching...
No Matches
AutoResearchMathExp.h
Go to the documentation of this file.
1
12#pragma once
13
14#include "fl/math/math.h"
15#include "fl/stl/int.h"
17
18namespace autoresearch {
19namespace math_exp {
20
21struct Result {
22 bool success;
23 fl::u32 iterations; // calls per timed loop
24 fl::u32 accuracy_points; // inputs compared against libm
25 float worst_ulp_float; // max |fl::exp - expf| in ulp of expf
26 double worst_ulp_double; // max |fl::exp - exp| in ulp of exp
29 fl::u32 fl_expf_us; // fl::exp, iterations calls
30 fl::u32 libm_expf_us; // ::expf, same inputs
31 fl::u32 fl_exp_us; // fl::exp (double)
32 fl::u32 libm_exp_us; // ::exp
33 float sink; // keeps the loops honest
34 int large_memory; // FL_PLATFORM_HAS_LARGE_MEMORY as built
35};
36
38Result run(fl::u32 iterations);
39
40} // namespace math_exp
41} // namespace autoresearch
Result run(fl::u32 iterations)
Runs the accuracy sweep and the timed loops. iterations = calls per loop.