< prev index next >

src/jdk.incubator.vector/share/classes/jdk/incubator/vector/LongMaxVector.java

Print this page

        

*** 861,871 **** long[] a = toArray(); int[] sa = new int[a.length]; for (int i = 0; i < a.length; i++) { sa[i] = (int) a[i]; } ! return LongVector.shuffleFromArray(SPECIES, sa, 0); } // Memory operations private static final int ARRAY_SHIFT = 31 - Integer.numberOfLeadingZeros(Unsafe.ARRAY_LONG_INDEX_SCALE); --- 861,871 ---- long[] a = toArray(); int[] sa = new int[a.length]; for (int i = 0; i < a.length; i++) { sa[i] = (int) a[i]; } ! return Shuffle.fromArray(SPECIES, sa, 0); } // Memory operations private static final int ARRAY_SHIFT = 31 - Integer.numberOfLeadingZeros(Unsafe.ARRAY_LONG_INDEX_SCALE);
*** 1356,1366 **** @Override @ForceInline public boolean allTrue() { return VectorIntrinsics.test(BT_overflow, LongMaxMask.class, long.class, LENGTH, ! this, LongVector.maskAllTrue(species()), (m, __) -> allTrueHelper(((LongMaxMask)m).getBits())); } } // Shuffle --- 1356,1366 ---- @Override @ForceInline public boolean allTrue() { return VectorIntrinsics.test(BT_overflow, LongMaxMask.class, long.class, LENGTH, ! this, Mask.maskAllTrue(species()), (m, __) -> allTrueHelper(((LongMaxMask)m).getBits())); } } // Shuffle
*** 1420,1430 **** throw new UnsupportedOperationException("Bad lane type for casting."); } } @Override ! public LongMaxShuffle rearrange(Vector.Shuffle<Long> o) { LongMaxShuffle s = (LongMaxShuffle) o; byte[] r = new byte[reorder.length]; for (int i = 0; i < reorder.length; i++) { r[i] = reorder[s.reorder[i]]; } --- 1420,1430 ---- throw new UnsupportedOperationException("Bad lane type for casting."); } } @Override ! public LongMaxShuffle rearrange(Shuffle<Long> o) { LongMaxShuffle s = (LongMaxShuffle) o; byte[] r = new byte[reorder.length]; for (int i = 0; i < reorder.length; i++) { r[i] = reorder[s.reorder[i]]; }
< prev index next >