< prev index next >

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

Print this page

        

*** 816,826 **** byte[] a = toArray(); int[] sa = new int[a.length]; for (int i = 0; i < a.length; i++) { sa[i] = (int) a[i]; } ! return ByteVector.shuffleFromArray(SPECIES, sa, 0); } // Memory operations private static final int ARRAY_SHIFT = 31 - Integer.numberOfLeadingZeros(Unsafe.ARRAY_BYTE_INDEX_SCALE); --- 816,826 ---- byte[] 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_BYTE_INDEX_SCALE);
*** 1277,1287 **** @Override @ForceInline public boolean allTrue() { return VectorIntrinsics.test(BT_overflow, Byte64Mask.class, byte.class, LENGTH, ! this, ByteVector.maskAllTrue(species()), (m, __) -> allTrueHelper(((Byte64Mask)m).getBits())); } } // Shuffle --- 1277,1287 ---- @Override @ForceInline public boolean allTrue() { return VectorIntrinsics.test(BT_overflow, Byte64Mask.class, byte.class, LENGTH, ! this, Mask.maskAllTrue(species()), (m, __) -> allTrueHelper(((Byte64Mask)m).getBits())); } } // Shuffle
*** 1341,1351 **** throw new UnsupportedOperationException("Bad lane type for casting."); } } @Override ! public Byte64Shuffle rearrange(Vector.Shuffle<Byte> o) { Byte64Shuffle s = (Byte64Shuffle) o; byte[] r = new byte[reorder.length]; for (int i = 0; i < reorder.length; i++) { r[i] = reorder[s.reorder[i]]; } --- 1341,1351 ---- throw new UnsupportedOperationException("Bad lane type for casting."); } } @Override ! public Byte64Shuffle rearrange(Shuffle<Byte> o) { Byte64Shuffle s = (Byte64Shuffle) o; byte[] r = new byte[reorder.length]; for (int i = 0; i < reorder.length; i++) { r[i] = reorder[s.reorder[i]]; }
< prev index next >