< prev index next >

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

Print this page

        

*** 1284,1299 **** Shuffle<$Boxtype$, Shapes.$shape$> s, Mask<$Boxtype$, Shapes.$shape$> m) { return this.rearrange(s).blend(v.rearrange(s), m); } @Override ! public $vectortype$ rearrange(Shuffle<$Boxtype$, Shapes.$shape$> s) { ! return uOp((i, a) -> { $type$[] vec = this.getElements(); ! int ei = s.getElement(i); return vec[ei]; ! }); } @Override @ForceInline public $vectortype$ blend(Vector<$Boxtype$, Shapes.$shape$> o1, Mask<$Boxtype$, Shapes.$shape$> o2) { --- 1284,1306 ---- Shuffle<$Boxtype$, Shapes.$shape$> s, Mask<$Boxtype$, Shapes.$shape$> m) { return this.rearrange(s).blend(v.rearrange(s), m); } @Override ! @ForceInline ! public $vectortype$ rearrange(Shuffle<$Boxtype$, Shapes.$shape$> o1) { ! Objects.requireNonNull(o1); ! $shuffletype$ s = ($shuffletype$)o1; ! ! return VectorIntrinsics.rearrangeOp( ! $vectortype$.class, $shuffletype$.class, $type$.class, LENGTH, ! this, s, ! (v1, s_) -> v1.uOp((i, a) -> { $type$[] vec = this.getElements(); ! int ei = s_.getElement(i); return vec[ei]; ! })); } @Override @ForceInline public $vectortype$ blend(Vector<$Boxtype$, Shapes.$shape$> o1, Mask<$Boxtype$, Shapes.$shape$> o2) {
< prev index next >