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

Function test_min_f32_4

examples/AutoResearch/AutoResearchSimd.h:668–675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666}
667
668inline bool test_min_f32_4() {
669 float a[4] = {1.0f, 5.0f, -3.0f, 7.0f};
670 float b[4] = {4.0f, 2.0f, 6.0f, -1.0f};
671 float expected[4] = {1.0f, 2.0f, -3.0f, -1.0f};
672 float output[4] = {0.0f};
673 store_f32_4(output, min_f32_4(load_f32_4(a), load_f32_4(b)));
674 return compare_f32(expected, output, 4);
675}
676
677inline bool test_max_f32_4() {
678 float a[4] = {1.0f, 5.0f, -3.0f, 7.0f};

Callers

nothing calls this directly

Calls 1

compare_f32Function · 0.85

Tested by

no test coverage detected