| 185 | } |
| 186 | |
| 187 | inline 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 | |
| 195 | inline bool test_scale_u8_16_full() { |
| 196 | // scale by 255 should give approximately the original value |
nothing calls this directly
no test coverage detected