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

Function test_and_u32_4

examples/AutoResearch/AutoResearchSimd.h:383–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383inline bool test_and_u32_4() {
384 uint32_t a[4] = {0xFFFF0000, 0x0F0F0F0F, 0xAAAAAAAA, 0x00000000};
385 uint32_t b[4] = {0x0000FFFF, 0xF0F0F0F0, 0xFFFFFFFF, 0xFFFFFFFF};
386 uint32_t expected[4] = {0x00000000, 0x00000000, 0xAAAAAAAA, 0x00000000};
387 uint32_t output[4] = {0};
388 store_u32_4(output, and_u32_4(load_u32_4(a), load_u32_4(b)));
389 return compare_u32(expected, output, 4);
390}
391
392inline bool test_or_u32_4() {
393 uint32_t a[4] = {0xFFFF0000, 0x0F0F0F0F, 0xAAAAAAAA, 0x00000000};

Callers

nothing calls this directly

Calls 1

compare_u32Function · 0.85

Tested by

no test coverage detected