221 {
222
223 uint8_t a[16] = {100,100,100,100, 100,100,100,100, 100,100,100,100, 100,100,100,100};
224 uint8_t b[16] = {200,200,200,200, 200,200,200,200, 200,200,200,200, 200,200,200,200};
225 uint8_t output0[16] = {0};
227 store_u8_16(output0, blend_u8_16(load_u8_16(a), load_u8_16(b), 0));
228 store_u8_16(output255, blend_u8_16(load_u8_16(a), load_u8_16(b), 255));
229 for (int i = 0; i < 16; i++) {
230 if (output0[i] != 100) return false;
231 int diff = (int)output255[i] - 200;
232 if (diff < -2 || diff > 2) return false;
233 }
234 return true;
235}