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

Function test_sqrt_f32_4

examples/AutoResearch/AutoResearchSimd.h:652–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652inline bool test_sqrt_f32_4() {
653 float a[4] = {4.0f, 9.0f, 16.0f, 25.0f};
654 float expected[4] = {2.0f, 3.0f, 4.0f, 5.0f};
655 float output[4] = {0.0f};
656 store_f32_4(output, sqrt_f32_4(load_f32_4(a)));
657 return compare_f32(expected, output, 4);
658}
659
660inline bool test_sqrt_f32_4_zero() {
661 float a[4] = {0.0f, 1.0f, 100.0f, 0.25f};

Callers

nothing calls this directly

Calls 1

compare_f32Function · 0.85

Tested by

no test coverage detected