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

Function test_scale_u8_16_zero

examples/AutoResearch/AutoResearchSimd.h:187–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187inline bool test_scale_u8_16_zero() {
188 uint8_t a[16] = {255,128,64,32, 255,128,64,32, 255,128,64,32, 255,128,64,32};
189 uint8_t expected[16] = {0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0};
190 uint8_t output[16] = {0};
191 store_u8_16(output, scale_u8_16(load_u8_16(a), 0));
192 return compare_u8(expected, output, 16);
193}
194
195inline bool test_scale_u8_16_full() {
196 // scale by 255 should give approximately the original value

Callers

nothing calls this directly

Calls 1

compare_u8Function · 0.85

Tested by

no test coverage detected