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

Method allocByte

CodenameOne/src/com/codename1/util/Simd.java:48–53  ·  view source on GitHub ↗
(int size)

Source from the content-addressed store, hash-verified

46 /// arrays and shouldn't use arrays created with `new`. Operations
47 /// on unaligned arrays might produce undefined results.
48 public byte[] allocByte(int size) {
49 if (size < 16) {
50 throw new IllegalArgumentException("size must be >= 16");
51 }
52 return new byte[size];
53 }
54
55 /// Allocates an aligned memory block for efficient SIMD
56 /// operations. All operations MUST be performed on aligned

Callers 12

createMaskMethod · 0.95
allocByteMaybeSimdMethod · 0.95
allocaByteMethod · 0.95
runTestMethod · 0.95
runTestMethod · 0.95
getSimdEncodeMapMethod · 0.45
getSimdDecodeMapMethod · 0.45
getSimdConst03Method · 0.45
getSimdConst0FMethod · 0.45
getSimdConst3FMethod · 0.45

Calls

no outgoing calls

Tested by 4

runTestMethod · 0.76
runTestMethod · 0.76