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

◆ test_set1_f32_4()

void simd_test::test_set1_f32_4 ( TestResult & result)

Definition at line 279 of file simd_tests.cpp.

279 {
280 float value = 3.14159f;
281 float expected[4] = {3.14159f, 3.14159f, 3.14159f, 3.14159f};
282 float output[4] = {0.0f};
283
284 simd_f32x4 v = set1_f32_4(value);
285 store_f32_4(output, v);
286
287 if (!compare_f32_arrays(expected, output, 4)) {
288 result.fail("Set1 f32x4 operation produced incorrect results");
289 }
290}
platforms::simd_f32x4 simd_f32x4
Definition types.h:27
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31
bool compare_f32_arrays(const float *a, const float *b, size_t count, float epsilon)
Compare two float arrays element-wise with epsilon tolerance.

References compare_f32_arrays(), and fl::type_rank< T >::value.

Referenced by setup().

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