(byte[] srcA, byte[] srcB, byte[] dst, int offset, int length)
| 228 | |
| 229 | /// Exposes SIMD APIs directly **all arrays MUST be aligned arrays** |
| 230 | public void add(byte[] srcA, byte[] srcB, byte[] dst, int offset, int length) { |
| 231 | for (int i = offset, end = offset + length; i < end; i++) { |
| 232 | dst[i] = clampByte(srcA[i] + srcB[i]); |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | /// Exposes SIMD APIs directly **all arrays MUST be aligned arrays** |
| 237 | public void sub(byte[] srcA, byte[] srcB, byte[] dst, int offset, int length) { |