FastLED 3.10.9
Loading...
Searching...
No Matches

◆ test_add_f32_4_negative()

bool autoresearch::simd_check::test_add_f32_4_negative ( )
inline

Definition at line 608 of file AutoResearchSimd.h.

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