FastLED 3.9.15
Loading...
Searching...
No Matches

◆ compare_f32()

bool autoresearch::simd_check::compare_f32 ( const float * a,
const float * b,
size_t n,
float eps = 0.001f )
inline

Definition at line 42 of file AutoResearchSimd.h.

42 {
43 for (size_t i = 0; i < n; i++) {
44 float diff = a[i] - b[i];
45 if (diff < -eps || diff > eps) return false;
46 }
47 return true;
48}

Referenced by test_add_f32_4(), test_add_f32_4_negative(), test_div_f32_4(), test_f32_pipeline_mul_add_clamp(), test_load_store_f32_4(), test_max_f32_4(), test_min_f32_4(), test_mul_f32_4(), test_mul_f32_4_negative(), test_set1_f32_4(), test_sqrt_f32_4(), test_sqrt_f32_4_zero(), and test_sub_f32_4().

+ Here is the caller graph for this function: