< prev index next >

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

Print this page
@@ -453,10 +453,26 @@
              super.rearrangeTemplate(Float256Shuffle.class,
                                      (Float256Shuffle) s,
                                      (Float256Vector) v);  // specialize
      }
  
+     @Override
+     @ForceInline
+     public Float256Vector compress(VectorMask<Float> m) {
+         return (Float256Vector)
+             super.compressTemplate(Float256Mask.class,
+                                    (Float256Mask) m);  // specialize
+     }
+ 
+     @Override
+     @ForceInline
+     public Float256Vector expand(VectorMask<Float> m) {
+         return (Float256Vector)
+             super.expandTemplate(Float256Mask.class,
+                                    (Float256Mask) m);  // specialize
+     }
+ 
      @Override
      @ForceInline
      public Float256Vector selectFrom(Vector<Float> v) {
          return (Float256Vector)
              super.selectFromTemplate((Float256Vector) v);  // specialize

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