< prev index next >

test/jdk/jdk/incubator/vector/templates/Kernel-Rearrange.template

Print this page
rev 54658 : refactored mask and shuffle creation methods, moved classes to top-level
   1         $type$[] a = fa.apply(SPECIES.length());
   2         int[] order = fs.apply(a.length, SPECIES.length());
   3         $type$[] r = fr.apply(SPECIES.length());
   4 
   5         for (int ic = 0; ic < INVOC_COUNT; ic++) {
   6             for (int i = 0; i < a.length; i += SPECIES.length()) {
   7                 $abstractvectortype$ av = $abstractvectortype$.fromArray(SPECIES, a, i);
   8                 av.rearrange($abstractvectortype$.shuffleFromArray(SPECIES, order, i)).intoArray(r, i);
   9             }
  10         }
  11 
   1         $type$[] a = fa.apply(SPECIES.length());
   2         int[] order = fs.apply(a.length, SPECIES.length());
   3         $type$[] r = fr.apply(SPECIES.length());
   4 
   5         for (int ic = 0; ic < INVOC_COUNT; ic++) {
   6             for (int i = 0; i < a.length; i += SPECIES.length()) {
   7                 $abstractvectortype$ av = $abstractvectortype$.fromArray(SPECIES, a, i);
   8                 av.rearrange(VectorShuffle.fromArray(SPECIES, order, i)).intoArray(r, i);
   9             }
  10         }
  11 
< prev index next >