< prev index next >

test/jdk/jdk/incubator/vector/VectorArrays.java

Print this page
rev 55594 : tests and benchmark changes

@@ -21,10 +21,11 @@
  * questions.
  */
 
 import jdk.incubator.vector.ByteVector;
 import jdk.incubator.vector.Vector;
+import jdk.incubator.vector.Vector.Species;
 
 public class VectorArrays {
     static boolean equals(byte[] a, byte[] b) {
         if (a == b)
             return true;

@@ -52,16 +53,15 @@
         return a.length - b.length;
 
     }
 
     static int mismatch(byte[] a, byte[] b) {
-        ByteVector.ByteSpecies species =
-                ByteVector.species(Vector.Shape.S_256_BIT);
+        Species<Byte> species = ByteVector.SPECIES_256;
         return mismatch(a, b, species);
     }
 
-    static int mismatch(byte[] a, byte[] b, ByteVector.ByteSpecies species) {
+    static int mismatch(byte[] a, byte[] b, Species<Byte> species) {
         int length = Math.min(a.length, b.length);
         if (a == b)
             return -1;
 
         int i = 0;
< prev index next >