MCPcopy Create free account
hub / github.com/FastLED/FastLED / test_load_store_u8_16

Function test_load_store_u8_16

examples/SIMD/simd_tests.cpp:18–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16// ============================================================================
17
18void test_load_store_u8_16(TestResult& result) {
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}
29
30void test_load_store_u32_4(TestResult& result) {
31 uint32_t input[4] = {0x12345678, 0x9ABCDEF0, 0xFEDCBA98, 0x76543210};

Callers

nothing calls this directly

Calls 2

compare_u8_arraysFunction · 0.85
failMethod · 0.45

Tested by

no test coverage detected