< prev index next >

test/jdk/jdk/incubator/vector/templates/Unit-Reduction-Scalar-Masked-op.template

Print this page
@@ -1,4 +1,6 @@
+ 
      static $type$ [[TEST]]ReduceMasked($type$[] a, int idx, boolean[] mask) {
          $type$ res = [[TEST_INIT]];
          for (int i = idx; i < (idx + SPECIES.length()); i++) {
              if (mask[i % SPECIES.length()])
                  res [[TEST_OP]]= a[i];
< prev index next >