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

◆ test_add_f32_4_negative()

bool autoresearch::simd_check::test_add_f32_4_negative ( )
inline

Definition at line 607 of file AutoResearchSimd.h.

607 {
608 float a[4] = {-1.0f, 2.0f, -3.0f, 0.0f};
609 float b[4] = {1.0f, -2.0f, -3.0f, 0.0f};
610 float expected[4] = {0.0f, 0.0f, -6.0f, 0.0f};
611 float output[4] = {0.0f};
612 store_f32_4(output, add_f32_4(load_f32_4(a), load_f32_4(b)));
613 return compare_f32(expected, output, 4);
614}
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: