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

Function test_unpacklo_u32_4

examples/AutoResearch/AutoResearchSimd.h:554–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552// ============================================================================
553
554inline bool test_unpacklo_u32_4() {
555 // {a0, b0, a1, b1}
556 simd_u32x4 a = set_u32_4(1, 2, 3, 4);
557 simd_u32x4 b = set_u32_4(10, 20, 30, 40);
558 uint32_t output[4] = {0};
559 store_u32_4(output, unpacklo_u32_4(a, b));
560 uint32_t expected[4] = {1, 10, 2, 20};
561 return compare_u32(expected, output, 4);
562}
563
564inline bool test_unpackhi_u32_4() {
565 // {a2, b2, a3, b3}

Callers

nothing calls this directly

Calls 1

compare_u32Function · 0.85

Tested by

no test coverage detected