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

◆ test_crossval_max_u8_16()

bool autoresearch::simd_check::test_crossval_max_u8_16 ( )
inline

Definition at line 1001 of file AutoResearchSimd.h.

1001 {
1002 uint8_t a[16] = {0,255,128,127, 1,254,0x55,0xAA, 0x0F,0xF0,0x80,0x7F, 0x01,0xFE,0xFF,0x00};
1003 uint8_t b[16] = {255,0,127,128, 254,1,0xAA,0x55, 0xF0,0x0F,0x7F,0x80, 0xFE,0x01,0x00,0xFF};
1004 uint8_t expected[16], actual[16];
1005 ref_max_u8_16(a, b, expected);
1006 store_u8_16(actual, max_u8_16(load_u8_16(a), load_u8_16(b)));
1007 return compare_u8(expected, actual, 16);
1008}
void ref_max_u8_16(const uint8_t *a, const uint8_t *b, uint8_t *out)
bool compare_u8(const uint8_t *a, const uint8_t *b, size_t n)

References compare_u8(), and ref_max_u8_16().

Referenced by getTests().

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