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

Function test_load_store_u32_4

examples/SIMD/simd_tests.cpp:30–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void test_load_store_u32_4(TestResult& result) {
31 uint32_t input[4] = {0x12345678, 0x9ABCDEF0, 0xFEDCBA98, 0x76543210};
32 uint32_t output[4] = {0};
33
34 simd_u32x4 v = load_u32_4(input);
35 store_u32_4(output, v);
36
37 for (int i = 0; i < 4; i++) {
38 if (input[i] != output[i]) {
39 result.fail("Load/store u32x4 data mismatch");
40 return;
41 }
42 }
43}
44
45void test_load_store_f32_4(TestResult& result) {
46 float input[4] = {1.5f, 2.5f, 3.5f, 4.5f};

Callers

nothing calls this directly

Calls 1

failMethod · 0.45

Tested by

no test coverage detected