< prev index next >

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

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

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