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