< prev index next >

test/jdk/jdk/incubator/vector/templates/Unit-Slice-Masked-bop.template

Print this page
*** 1,4 ***
--- 1,6 ---
+ 
      static $type$[] [[TEST]]($type$[] a, $type$[] b, int origin, boolean[] mask, int idx) {
          $type$[] res = new $type$[SPECIES.length()];
          for (int i = 0, j = 0; i < SPECIES.length(); i++){
              if(i+origin < SPECIES.length())
                  res[i] = mask[i] ? a[idx+i+origin] : ($type$)0;
< prev index next >