< prev index next >

src/jdk.incubator.vector/share/classes/jdk/incubator/vector/X-VectorBits.java.template

Print this page

        

*** 1305,1315 **** $type$[] a = toArray(); int[] sa = new int[a.length]; for (int i = 0; i < a.length; i++) { sa[i] = (int) a[i]; } ! return $abstractvectortype$.shuffleFromArray(SPECIES, sa, 0); } // Memory operations private static final int ARRAY_SHIFT = 31 - Integer.numberOfLeadingZeros(Unsafe.ARRAY_$TYPE$_INDEX_SCALE); --- 1305,1315 ---- $type$[] 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_$TYPE$_INDEX_SCALE);
*** 1850,1860 **** @Override @ForceInline public boolean allTrue() { return VectorIntrinsics.test(BT_overflow, $masktype$.class, $bitstype$.class, LENGTH, ! this, $abstractvectortype$.maskAllTrue(species()), (m, __) -> allTrueHelper((($masktype$)m).getBits())); } } // Shuffle --- 1850,1860 ---- @Override @ForceInline public boolean allTrue() { return VectorIntrinsics.test(BT_overflow, $masktype$.class, $bitstype$.class, LENGTH, ! this, Mask.maskAllTrue(species()), (m, __) -> allTrueHelper((($masktype$)m).getBits())); } } // Shuffle
*** 1914,1924 **** throw new UnsupportedOperationException("Bad lane type for casting."); } } @Override ! public $shuffletype$ rearrange(Vector.Shuffle<$Boxtype$> o) { $shuffletype$ s = ($shuffletype$) o; byte[] r = new byte[reorder.length]; for (int i = 0; i < reorder.length; i++) { r[i] = reorder[s.reorder[i]]; } --- 1914,1924 ---- throw new UnsupportedOperationException("Bad lane type for casting."); } } @Override ! public $shuffletype$ rearrange(Shuffle<$Boxtype$> o) { $shuffletype$ s = ($shuffletype$) o; byte[] r = new byte[reorder.length]; for (int i = 0; i < reorder.length; i++) { r[i] = reorder[s.reorder[i]]; }
< prev index next >