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

Function test_sub_f32_4

examples/AutoResearch/AutoResearchSimd.h:616–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616inline bool test_sub_f32_4() {
617 float a[4] = {10.0f, 20.0f, 30.0f, 40.0f};
618 float b[4] = {1.0f, 2.0f, 3.0f, 4.0f};
619 float expected[4] = {9.0f, 18.0f, 27.0f, 36.0f};
620 float output[4] = {0.0f};
621 store_f32_4(output, sub_f32_4(load_f32_4(a), load_f32_4(b)));
622 return compare_f32(expected, output, 4);
623}
624
625inline bool test_mul_f32_4() {
626 float a[4] = {2.0f, 3.0f, 4.0f, 5.0f};

Callers

nothing calls this directly

Calls 1

compare_f32Function · 0.85

Tested by

no test coverage detected