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

◆ test_load_store_u8_16()

void simd_test::test_load_store_u8_16 ( TestResult & result)

Definition at line 18 of file simd_tests.cpp.

18 {
19 uint8_t input[16] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
20 uint8_t output[16] = {0};
21
22 simd_u8x16 v = load_u8_16(input);
23 store_u8_16(output, v);
24
25 if (!compare_u8_arrays(input, output, 16)) {
26 result.fail("Load/store u8x16 data mismatch");
27 }
28}
platforms::simd_u8x16 simd_u8x16
Definition types.h:24
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31
bool compare_u8_arrays(const uint8_t *a, const uint8_t *b, size_t count)
Compare two uint8_t arrays element-wise.

References compare_u8_arrays().

Referenced by setup().

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