< prev index next >

test/jdk/jdk/incubator/vector/templates/Kernel-Scatter-op.template

Print this page
rev 55589 : 8221817: [vector] No suitable species for indexMap of Gather/Scatter VectorAPI
Reviewed-by: duke
   1         $type$[] a = fa.apply(SPECIES.length());



   2         int[] b = fs.apply(a.length, SPECIES.length());

   3         $type$[] r = new $type$[a.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.intoArray(r, i, b, i);
   9             }
  10         }
   1         $type$[] a = fa.apply(SPECIES.length());
   2 #if[longOrDoubleMax]
   3         int[] b = fs.apply(a.length * 2, SPECIES.length());
   4 #else[longOrDoubleMax]
   5         int[] b = fs.apply(a.length, SPECIES.length());
   6 #end[longOrDoubleMax]
   7         $type$[] r = new $type$[a.length];
   8 
   9         for (int ic = 0; ic < INVOC_COUNT; ic++) {
  10             for (int i = 0; i < a.length; i += SPECIES.length()) {
  11                 $abstractvectortype$ av = $abstractvectortype$.fromArray(SPECIES, a, i);
  12                 av.intoArray(r, i, b, i);
  13             }
  14         }
< prev index next >