< prev index next >

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

Print this page

        

*** 921,931 **** double[] a = toArray(); int[] sa = new int[a.length]; for (int i = 0; i < a.length; i++) { sa[i] = (int) a[i]; } ! return DoubleVector.shuffleFromArray(SPECIES, sa, 0); } // Memory operations private static final int ARRAY_SHIFT = 31 - Integer.numberOfLeadingZeros(Unsafe.ARRAY_DOUBLE_INDEX_SCALE); --- 921,931 ---- double[] 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_DOUBLE_INDEX_SCALE);
*** 1417,1427 **** @Override @ForceInline public boolean allTrue() { return VectorIntrinsics.test(BT_overflow, Double512Mask.class, long.class, LENGTH, ! this, DoubleVector.maskAllTrue(species()), (m, __) -> allTrueHelper(((Double512Mask)m).getBits())); } } // Shuffle --- 1417,1427 ---- @Override @ForceInline public boolean allTrue() { return VectorIntrinsics.test(BT_overflow, Double512Mask.class, long.class, LENGTH, ! this, Mask.maskAllTrue(species()), (m, __) -> allTrueHelper(((Double512Mask)m).getBits())); } } // Shuffle
*** 1481,1491 **** throw new UnsupportedOperationException("Bad lane type for casting."); } } @Override ! public Double512Shuffle rearrange(Vector.Shuffle<Double> o) { Double512Shuffle s = (Double512Shuffle) o; byte[] r = new byte[reorder.length]; for (int i = 0; i < reorder.length; i++) { r[i] = reorder[s.reorder[i]]; } --- 1481,1491 ---- throw new UnsupportedOperationException("Bad lane type for casting."); } } @Override ! public Double512Shuffle rearrange(Shuffle<Double> o) { Double512Shuffle s = (Double512Shuffle) o; byte[] r = new byte[reorder.length]; for (int i = 0; i < reorder.length; i++) { r[i] = reorder[s.reorder[i]]; }
< prev index next >