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

Method max

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

Source from the content-addressed store, hash-verified

256
257 /// Exposes SIMD APIs directly **all arrays MUST be aligned arrays**
258 public void max(byte[] srcA, byte[] srcB, byte[] dst, int offset, int length) {
259 for (int i = offset, end = offset + length; i < end; i++) {
260 dst[i] = srcA[i] > srcB[i] ? srcA[i] : srcB[i];
261 }
262 }
263
264 /// Exposes SIMD APIs directly **all arrays MUST be aligned arrays**
265 public void abs(byte[] src, byte[] dst, int offset, int length) {

Callers 3

GaFunction · 0.45
iFunction · 0.45
capture.jsFile · 0.45

Calls 1

maxMethod · 0.95

Tested by

no test coverage detected