< prev index next >

test/jdk/jdk/incubator/vector/VectorHash.java

Print this page
rev 55894 : 8222897: [vector] Renaming of shift, rotate operations. Few other api changes.
Summary: Renaming of shift, rotate operations. Few other api changes.
Reviewed-by: jrose, briangoetz

@@ -120,11 +120,11 @@
         int h = 1;
         int i = 0;
         for (; i < (a.length & ~(BYTE_64_SPECIES.length() - 1)); i += BYTE_64_SPECIES.length()) {
             ByteVector b = ByteVector.fromArray(BYTE_64_SPECIES, a, i);
             IntVector x = (IntVector) b.cast(INT_256_SPECIES);
-            h = h * COEFF_31_TO_8 + x.mul(H_COEFF_8).addAll();
+            h = h * COEFF_31_TO_8 + x.mul(H_COEFF_8).addLanes();
         }
 
         for (; i < a.length; i++) {
             h = 31 * h + a[i];
         }

@@ -135,11 +135,11 @@
         int h = 1;
         int i = 0;
         for (; i < (a.length & ~(BYTE_128_SPECIES.length() - 1)); i += BYTE_128_SPECIES.length()) {
             ByteVector b = ByteVector.fromArray(BYTE_128_SPECIES, a, i);
             IntVector x = (IntVector) b.cast(INT_512_SPECIES);
-            h = h * COEFF_31_TO_16 + x.mul(H_COEFF_16).addAll();
+            h = h * COEFF_31_TO_16 + x.mul(H_COEFF_16).addLanes();
         }
 
         for (; i < a.length; i++) {
             h = 31 * h + a[i];
         }

@@ -170,13 +170,13 @@
 
             for (int j = 0; j < byteSpecies.length() / intSpecies.length(); j++) {
                 // Reduce the size of the byte vector and then cast to int
                 IntVector x = (IntVector)(b.reshape(bytesForIntsSpecies)).cast(intSpecies);
 
-                h = h * top_h_coeff + x.mul(v_h_coeff).addAll();
+                h = h * top_h_coeff + x.mul(v_h_coeff).addLanes();
 
-                b = b.shiftEL(intSpecies.length());
+                b = b.shiftLanesLeft(intSpecies.length());
             }
         }
 
         for (; i < a.length; i++) {
             h = 31 * h + a[i];
< prev index next >