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

Function test_and_u8_16

examples/AutoResearch/AutoResearchSimd.h:288–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286// ============================================================================
287
288inline bool test_and_u8_16() {
289 uint8_t a[16] = {0xFF,0x0F,0xF0,0xAA, 0xFF,0x0F,0xF0,0xAA, 0xFF,0x0F,0xF0,0xAA, 0xFF,0x0F,0xF0,0xAA};
290 uint8_t b[16] = {0x0F,0xFF,0xFF,0x55, 0x0F,0xFF,0xFF,0x55, 0x0F,0xFF,0xFF,0x55, 0x0F,0xFF,0xFF,0x55};
291 uint8_t expected[16] = {0x0F,0x0F,0xF0,0x00, 0x0F,0x0F,0xF0,0x00, 0x0F,0x0F,0xF0,0x00, 0x0F,0x0F,0xF0,0x00};
292 uint8_t output[16] = {0};
293 store_u8_16(output, and_u8_16(load_u8_16(a), load_u8_16(b)));
294 return compare_u8(expected, output, 16);
295}
296
297inline bool test_or_u8_16() {
298 uint8_t a[16] = {0xFF,0x0F,0xF0,0xAA, 0x00,0x00,0xFF,0x80, 0xFF,0x0F,0xF0,0xAA, 0x00,0x00,0xFF,0x80};

Callers

nothing calls this directly

Calls 1

compare_u8Function · 0.85

Tested by

no test coverage detected