MCPcopy Create free account
hub / github.com/FastLED/FastLED / test_xor_u8_16

Function test_xor_u8_16

examples/AutoResearch/AutoResearchSimd.h:306–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306inline bool test_xor_u8_16() {
307 uint8_t a[16] = {0xFF,0x0F,0xF0,0xAA, 0xFF,0x00,0xAB,0x01, 0xFF,0x0F,0xF0,0xAA, 0xFF,0x00,0xAB,0x01};
308 uint8_t b[16] = {0x0F,0xFF,0xFF,0x55, 0xFF,0x00,0xAB,0x01, 0x0F,0xFF,0xFF,0x55, 0xFF,0x00,0xAB,0x01};
309 uint8_t expected[16] = {0xF0,0xF0,0x0F,0xFF, 0x00,0x00,0x00,0x00, 0xF0,0xF0,0x0F,0xFF, 0x00,0x00,0x00,0x00};
310 uint8_t output[16] = {0};
311 store_u8_16(output, xor_u8_16(load_u8_16(a), load_u8_16(b)));
312 return compare_u8(expected, output, 16);
313}
314
315inline bool test_andnot_u8_16() {
316 // andnot(a, b) = ~a & b

Callers

nothing calls this directly

Calls 1

compare_u8Function · 0.85

Tested by

no test coverage detected