FastLED 3.9.15
Loading...
Searching...
No Matches

◆ test_mul_f32_4_negative()

bool autoresearch::simd_check::test_mul_f32_4_negative ( )
inline

Definition at line 634 of file AutoResearchSimd.h.

634 {
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}
bool compare_f32(const float *a, const float *b, size_t n, float eps=0.001f)

References compare_f32().

Referenced by getTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: