< prev index next >

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

Print this page
@@ -456,10 +456,26 @@
              super.rearrangeTemplate(Long128Shuffle.class,
                                      (Long128Shuffle) s,
                                      (Long128Vector) v);  // specialize
      }
  
+     @Override
+     @ForceInline
+     public Long128Vector compress(VectorMask<Long> m) {
+         return (Long128Vector)
+             super.compressTemplate(Long128Mask.class,
+                                    (Long128Mask) m);  // specialize
+     }
+ 
+     @Override
+     @ForceInline
+     public Long128Vector expand(VectorMask<Long> m) {
+         return (Long128Vector)
+             super.expandTemplate(Long128Mask.class,
+                                    (Long128Mask) m);  // specialize
+     }
+ 
      @Override
      @ForceInline
      public Long128Vector selectFrom(Vector<Long> v) {
          return (Long128Vector)
              super.selectFromTemplate((Long128Vector) v);  // specialize

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