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

◆ test_load_store_f32_4()

void simd_test::test_load_store_f32_4 ( TestResult & result)

Definition at line 45 of file simd_tests.cpp.

45 {
46 float input[4] = {1.5f, 2.5f, 3.5f, 4.5f};
47 float output[4] = {0.0f};
48
49 simd_f32x4 v = load_f32_4(input);
50 store_f32_4(output, v);
51
52 if (!compare_f32_arrays(input, output, 4)) {
53 result.fail("Load/store f32x4 data mismatch");
54 }
55}
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().

Referenced by setup().

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