MCPcopy Create free account
hub / github.com/FastLED/FastLED / compare_f32_arrays

Function compare_f32_arrays

examples/SIMD/test_helpers.cpp:23–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23bool compare_f32_arrays(const float* a, const float* b, size_t count, float epsilon) {
24 for (size_t i = 0; i < count; i++) {
25 float diff = a[i] - b[i];
26 if (diff < 0.0f) diff = -diff;
27 if (diff > epsilon) {
28 return false;
29 }
30 }
31 return true;
32}
33
34// ============================================================================
35// Test Execution Functions

Callers 9

test_load_store_f32_4Function · 0.85
test_set1_f32_4Function · 0.85
test_add_f32_4Function · 0.85
test_sub_f32_4Function · 0.85
test_mul_f32_4Function · 0.85
test_div_f32_4Function · 0.85
test_sqrt_f32_4Function · 0.85
test_min_f32_4Function · 0.85
test_max_f32_4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected