< prev index next >

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

Print this page

        

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