(int size)
| 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 |
no outgoing calls