FastLED 3.10.9
Loading...
Searching...
No Matches

◆ test_crossval_sll_u32_4()

bool autoresearch::simd_check::test_crossval_sll_u32_4 ( )
inline

Definition at line 884 of file AutoResearchSimd.h.

884 {
885 uint32_t v[4] = {0x80000000, 0xFFFFFFFF, 0x00000001, 0xDEADBEEF};
886 for (int shift = 0; shift <= 31; shift += 7) {
887 uint32_t expected[4], actual[4];
888 ref_sll_u32_4(v, shift, expected);
889 store_u32_4(actual, sll_u32_4(load_u32_4(v), shift));
890 if (!compare_u32(expected, actual, 4)) return false;
891 }
892 return true;
893}
bool compare_u32(const uint32_t *a, const uint32_t *b, size_t n)
void ref_sll_u32_4(const uint32_t *v, int shift, uint32_t *out)

References compare_u32(), and ref_sll_u32_4().

Referenced by getTests().

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