|
Duplicate :
|
void floss(ByteBuffer b, int n) {
for (int i = 0; i < SIZE; i++) {
b.putInt(i<<2, n);
}
}
for
ByteBuffer buf = ByteBuffer.allocateDirect(SIZE * 4);
is not vectorized but should be.
|