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

◆ test_unpackhi_u32_4()

bool autoresearch::simd_check::test_unpackhi_u32_4 ( )
inline

Definition at line 564 of file AutoResearchSimd.h.

564 {
565 // {a2, b2, a3, b3}
566 simd_u32x4 a = set_u32_4(1, 2, 3, 4);
567 simd_u32x4 b = set_u32_4(10, 20, 30, 40);
568 uint32_t output[4] = {0};
569 store_u32_4(output, unpackhi_u32_4(a, b));
570 uint32_t expected[4] = {3, 30, 4, 40};
571 return compare_u32(expected, output, 4);
572}
bool compare_u32(const uint32_t *a, const uint32_t *b, size_t n)
platforms::simd_u32x4 simd_u32x4
Definition types.h:26

References compare_u32().

Referenced by getTests().

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