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

Function test_div_f32_4

examples/AutoResearch/AutoResearchSimd.h:643–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

641}
642
643inline bool test_div_f32_4() {
644 float a[4] = {10.0f, 20.0f, 30.0f, 40.0f};
645 float b[4] = {2.0f, 4.0f, 5.0f, 8.0f};
646 float expected[4] = {5.0f, 5.0f, 6.0f, 5.0f};
647 float output[4] = {0.0f};
648 store_f32_4(output, div_f32_4(load_f32_4(a), load_f32_4(b)));
649 return compare_f32(expected, output, 4);
650}
651
652inline bool test_sqrt_f32_4() {
653 float a[4] = {4.0f, 9.0f, 16.0f, 25.0f};

Callers

nothing calls this directly

Calls 1

compare_f32Function · 0.85

Tested by

no test coverage detected