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

Method allocInt

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

Source from the content-addressed store, hash-verified

57 /// arrays and shouldn't use arrays created with `new`. Operations
58 /// on unaligned arrays might produce undefined results.
59 public int[] allocInt(int size) {
60 if (size < 16) {
61 throw new IllegalArgumentException("size must be >= 16");
62 }
63 return new int[size];
64 }
65
66 /// Allocates an aligned memory block for efficient SIMD
67 /// operations. All operations MUST be performed on aligned

Calls

no outgoing calls