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

Function test_max_u8_16

examples/AutoResearch/AutoResearchSimd.h:249–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249inline bool test_max_u8_16() {
250 uint8_t a[16] = {10,200,30,240, 0,255,1,254, 10,200,30,240, 0,255,1,254};
251 uint8_t b[16] = {20,100,40,120, 0,0,255,255, 20,100,40,120, 0,0,255,255};
252 uint8_t expected[16] = {20,200,40,240, 0,255,255,255, 20,200,40,240, 0,255,255,255};
253 uint8_t output[16] = {0};
254 store_u8_16(output, max_u8_16(load_u8_16(a), load_u8_16(b)));
255 return compare_u8(expected, output, 16);
256}
257
258inline bool test_avg_u8_16() {
259 uint8_t a[16] = {100,200,50,0, 255,0,1,254, 100,200,50,0, 255,0,1,254};

Callers

nothing calls this directly

Calls 1

compare_u8Function · 0.85

Tested by

no test coverage detected