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

◆ test_sqrt_f32_4()

bool autoresearch::simd_check::test_sqrt_f32_4 ( )
inline

Definition at line 652 of file AutoResearchSimd.h.

652 {
653 float a[4] = {4.0f, 9.0f, 16.0f, 25.0f};
654 float expected[4] = {2.0f, 3.0f, 4.0f, 5.0f};
655 float output[4] = {0.0f};
656 store_f32_4(output, sqrt_f32_4(load_f32_4(a)));
657 return compare_f32(expected, output, 4);
658}
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: