< prev index next >

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

Print this page
@@ -466,10 +466,26 @@
              super.rearrangeTemplate(Byte512Shuffle.class,
                                      (Byte512Shuffle) s,
                                      (Byte512Vector) v);  // specialize
      }
  
+     @Override
+     @ForceInline
+     public Byte512Vector compress(VectorMask<Byte> m) {
+         return (Byte512Vector)
+             super.compressTemplate(Byte512Mask.class,
+                                    (Byte512Mask) m);  // specialize
+     }
+ 
+     @Override
+     @ForceInline
+     public Byte512Vector expand(VectorMask<Byte> m) {
+         return (Byte512Vector)
+             super.expandTemplate(Byte512Mask.class,
+                                    (Byte512Mask) m);  // specialize
+     }
+ 
      @Override
      @ForceInline
      public Byte512Vector selectFrom(Vector<Byte> v) {
          return (Byte512Vector)
              super.selectFromTemplate((Byte512Vector) v);  // specialize

@@ -765,10 +781,19 @@
          @ForceInline
          public Byte512Mask not() {
              return xor(maskAll(true));
          }
  
+         @Override
+         @ForceInline
+         public Byte512Mask compress() {
+             return (Byte512Mask)VectorSupport.comExpOp(VectorSupport.VECTOR_OP_MASK_COMPRESS,
+                 Byte512Vector.class, Byte512Mask.class, ETYPE, VLENGTH, null, this,
+                 (v1, m1) -> VSPECIES.iota().compare(VectorOperators.LT, m1.trueCount()));
+         }
+ 
+ 
          // Binary operations
  
          @Override
          @ForceInline
          public Byte512Mask and(VectorMask<Byte> mask) {
< prev index next >