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

◆ test_andnot_u8_16()

bool autoresearch::simd_check::test_andnot_u8_16 ( )
inline

Definition at line 315 of file AutoResearchSimd.h.

315 {
316 // andnot(a, b) = ~a & b
317 uint8_t a[16] = {0xFF,0x0F,0xF0,0xAA, 0x00,0xFF,0x55,0x80, 0xFF,0x0F,0xF0,0xAA, 0x00,0xFF,0x55,0x80};
318 uint8_t b[16] = {0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF};
319 uint8_t expected[16] = {0x00,0xF0,0x0F,0x55, 0xFF,0x00,0xAA,0x7F, 0x00,0xF0,0x0F,0x55, 0xFF,0x00,0xAA,0x7F};
320 uint8_t output[16] = {0};
321 store_u8_16(output, andnot_u8_16(load_u8_16(a), load_u8_16(b)));
322 return compare_u8(expected, output, 16);
323}
bool compare_u8(const uint8_t *a, const uint8_t *b, size_t n)
unsigned char uint8_t
Definition s16x16x4.h:209

References compare_u8().

Referenced by getTests().

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