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

Function test_mul_f32_4_negative

examples/AutoResearch/AutoResearchSimd.h:634–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632}
633
634inline bool test_mul_f32_4_negative() {
635 float a[4] = {-2.0f, 3.0f, -4.0f, 0.0f};
636 float b[4] = {3.0f, -4.0f, -5.0f, 100.0f};
637 float expected[4] = {-6.0f, -12.0f, 20.0f, 0.0f};
638 float output[4] = {0.0f};
639 store_f32_4(output, mul_f32_4(load_f32_4(a), load_f32_4(b)));
640 return compare_f32(expected, output, 4);
641}
642
643inline bool test_div_f32_4() {
644 float a[4] = {10.0f, 20.0f, 30.0f, 40.0f};

Callers

nothing calls this directly

Calls 1

compare_f32Function · 0.85

Tested by

no test coverage detected