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

Function test_sqrt_f32_4_zero

examples/AutoResearch/AutoResearchSimd.h:660–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658}
659
660inline bool test_sqrt_f32_4_zero() {
661 float a[4] = {0.0f, 1.0f, 100.0f, 0.25f};
662 float expected[4] = {0.0f, 1.0f, 10.0f, 0.5f};
663 float output[4] = {0.0f};
664 store_f32_4(output, sqrt_f32_4(load_f32_4(a)));
665 return compare_f32(expected, output, 4);
666}
667
668inline bool test_min_f32_4() {
669 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