MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / add

Method add

CodenameOne/src/com/codename1/util/Simd.java:230–234  ·  view source on GitHub ↗
(byte[] srcA, byte[] srcB, byte[] dst, int offset, int length)

Source from the content-addressed store, hash-verified

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) {

Callers 7

runTestMethod · 0.95
runTestMethod · 0.95
baseFallbackOpsWorkMethod · 0.95
offsetBasedIntOpsWorkMethod · 0.95

Calls 1

clampByteMethod · 0.95

Tested by 7

runTestMethod · 0.76
runTestMethod · 0.76
baseFallbackOpsWorkMethod · 0.76
offsetBasedIntOpsWorkMethod · 0.76