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

◆ test_crossval_sra_i32_4()

bool autoresearch::simd_check::test_crossval_sra_i32_4 ( )
inline

Definition at line 895 of file AutoResearchSimd.h.

895 {
896 uint32_t v[4] = {0x80000000, 0xFFFFFFFF, 0x7FFFFFFF, 0xDEADBEEF};
897 for (int shift = 0; shift <= 31; shift += 7) {
898 uint32_t expected[4], actual[4];
899 ref_sra_i32_4(v, shift, expected);
900 store_u32_4(actual, sra_i32_4(load_u32_4(v), shift));
901 if (!compare_u32(expected, actual, 4)) return false;
902 }
903 return true;
904}
bool compare_u32(const uint32_t *a, const uint32_t *b, size_t n)
void ref_sra_i32_4(const uint32_t *v, int shift, uint32_t *out)

References compare_u32(), and ref_sra_i32_4().

Referenced by getTests().

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