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
"
16
#include "
fl/system/sketch_macros.h
"
17
18
namespace
autoresearch
{
19
namespace
math_exp
{
20
21
struct
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
27
float
worst_x_float
;
28
double
worst_x_double
;
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
38
Result
run
(fl::u32 iterations);
39
40
}
// namespace math_exp
41
}
// namespace autoresearch
int.h
math.h
autoresearch::math_exp::run
Result run(fl::u32 iterations)
Runs the accuracy sweep and the timed loops. iterations = calls per loop.
autoresearch::math_exp
Definition
AutoResearchMathExp.h:19
autoresearch::math_exp::Result::worst_x_double
double worst_x_double
Definition
AutoResearchMathExp.h:28
autoresearch::math_exp::Result::accuracy_points
fl::u32 accuracy_points
Definition
AutoResearchMathExp.h:24
autoresearch::math_exp::Result::fl_exp_us
fl::u32 fl_exp_us
Definition
AutoResearchMathExp.h:31
autoresearch::math_exp::Result::libm_exp_us
fl::u32 libm_exp_us
Definition
AutoResearchMathExp.h:32
autoresearch::math_exp::Result::worst_x_float
float worst_x_float
Definition
AutoResearchMathExp.h:27
autoresearch::math_exp::Result::worst_ulp_float
float worst_ulp_float
Definition
AutoResearchMathExp.h:25
autoresearch::math_exp::Result::success
bool success
Definition
AutoResearchMathExp.h:22
autoresearch::math_exp::Result::fl_expf_us
fl::u32 fl_expf_us
Definition
AutoResearchMathExp.h:29
autoresearch::math_exp::Result::large_memory
int large_memory
Definition
AutoResearchMathExp.h:34
autoresearch::math_exp::Result::worst_ulp_double
double worst_ulp_double
Definition
AutoResearchMathExp.h:26
autoresearch::math_exp::Result::sink
float sink
Definition
AutoResearchMathExp.h:33
autoresearch::math_exp::Result::libm_expf_us
fl::u32 libm_expf_us
Definition
AutoResearchMathExp.h:30
autoresearch::math_exp::Result::iterations
fl::u32 iterations
Definition
AutoResearchMathExp.h:23
autoresearch::math_exp::Result
Definition
AutoResearchMathExp.h:21
autoresearch
Definition
AutoResearchAnimartrixBench.h:25
sketch_macros.h
examples
AutoResearch
AutoResearchMathExp.h
Generated on Sun Oct 4 2026 23:08:59 for FastLED by
1.13.2