36373839404142
int size = array.size(); int[] ints = array.extractHostArray(); for (int i = 0, m2 = size / 2; i < m2; i++) { IntCollections.swap(ints, i, size - 1 - i); } return new IntArray(ints, size); }