< prev index next >

src/jdk.incubator.vector/share/classes/jdk/incubator/vector/Int64Vector.java

Print this page

        

@@ -161,11 +161,11 @@
             throw new IllegalArgumentException("Vector length this species length differ");
 
         return VectorIntrinsics.cast(
             Int64Vector.class,
             int.class, LENGTH,
-            s.boxType(),
+            s.vectorType(),
             s.elementType(), LENGTH,
             this, s,
             (species, vector) -> vector.castDefault(species)
         );
     }

@@ -299,48 +299,48 @@
 
     @Override
     @ForceInline
     public IntVector reshape(VectorSpecies<Integer> s) {
         Objects.requireNonNull(s);
-        if (s.bitSize() == 64 && (s.boxType() == Int64Vector.class)) {
+        if (s.bitSize() == 64 && (s.vectorType() == Int64Vector.class)) {
             return VectorIntrinsics.reinterpret(
                 Int64Vector.class,
                 int.class, LENGTH,
                 Int64Vector.class,
                 int.class, Int64Vector.LENGTH,
                 this, s,
                 (species, vector) -> (IntVector) vector.defaultReinterpret(species)
             );
-        } else if (s.bitSize() == 128 && (s.boxType() == Int128Vector.class)) {
+        } else if (s.bitSize() == 128 && (s.vectorType() == Int128Vector.class)) {
             return VectorIntrinsics.reinterpret(
                 Int64Vector.class,
                 int.class, LENGTH,
                 Int128Vector.class,
                 int.class, Int128Vector.LENGTH,
                 this, s,
                 (species, vector) -> (IntVector) vector.defaultReinterpret(species)
             );
-        } else if (s.bitSize() == 256 && (s.boxType() == Int256Vector.class)) {
+        } else if (s.bitSize() == 256 && (s.vectorType() == Int256Vector.class)) {
             return VectorIntrinsics.reinterpret(
                 Int64Vector.class,
                 int.class, LENGTH,
                 Int256Vector.class,
                 int.class, Int256Vector.LENGTH,
                 this, s,
                 (species, vector) -> (IntVector) vector.defaultReinterpret(species)
             );
-        } else if (s.bitSize() == 512 && (s.boxType() == Int512Vector.class)) {
+        } else if (s.bitSize() == 512 && (s.vectorType() == Int512Vector.class)) {
             return VectorIntrinsics.reinterpret(
                 Int64Vector.class,
                 int.class, LENGTH,
                 Int512Vector.class,
                 int.class, Int512Vector.LENGTH,
                 this, s,
                 (species, vector) -> (IntVector) vector.defaultReinterpret(species)
             );
         } else if ((s.bitSize() > 0) && (s.bitSize() <= 2048)
-                && (s.bitSize() % 128 == 0) && (s.boxType() == IntMaxVector.class)) {
+                && (s.bitSize() % 128 == 0) && (s.vectorType() == IntMaxVector.class)) {
             return VectorIntrinsics.reinterpret(
                 Int64Vector.class,
                 int.class, LENGTH,
                 IntMaxVector.class,
                 int.class, IntMaxVector.LENGTH,

@@ -663,56 +663,56 @@
         return blend(xor(v), m);
     }
 
     @Override
     @ForceInline
-    public Int64Vector shiftL(int s) {
+    public Int64Vector shiftLeft(int s) {
         return VectorIntrinsics.broadcastInt(
             VECTOR_OP_LSHIFT, Int64Vector.class, int.class, LENGTH,
             this, s,
             (v, i) -> v.uOp((__, a) -> (int) (a << i)));
     }
 
     @Override
     @ForceInline
-    public Int64Vector shiftL(int s, VectorMask<Integer> m) {
-        return blend(shiftL(s), m);
+    public Int64Vector shiftLeft(int s, VectorMask<Integer> m) {
+        return blend(shiftLeft(s), m);
     }
 
     @Override
     @ForceInline
-    public Int64Vector shiftR(int s) {
+    public Int64Vector shiftRight(int s) {
         return VectorIntrinsics.broadcastInt(
             VECTOR_OP_URSHIFT, Int64Vector.class, int.class, LENGTH,
             this, s,
             (v, i) -> v.uOp((__, a) -> (int) (a >>> i)));
     }
 
     @Override
     @ForceInline
-    public Int64Vector shiftR(int s, VectorMask<Integer> m) {
-        return blend(shiftR(s), m);
+    public Int64Vector shiftRight(int s, VectorMask<Integer> m) {
+        return blend(shiftRight(s), m);
     }
 
     @Override
     @ForceInline
-    public Int64Vector aShiftR(int s) {
+    public Int64Vector shiftArithmeticRight(int s) {
         return VectorIntrinsics.broadcastInt(
             VECTOR_OP_RSHIFT, Int64Vector.class, int.class, LENGTH,
             this, s,
             (v, i) -> v.uOp((__, a) -> (int) (a >> i)));
     }
 
     @Override
     @ForceInline
-    public Int64Vector aShiftR(int s, VectorMask<Integer> m) {
-        return blend(aShiftR(s), m);
+    public Int64Vector shiftArithmeticRight(int s, VectorMask<Integer> m) {
+        return blend(shiftArithmeticRight(s), m);
     }
 
     @Override
     @ForceInline
-    public Int64Vector shiftL(Vector<Integer> s) {
+    public Int64Vector shiftLeft(Vector<Integer> s) {
         Int64Vector shiftv = (Int64Vector)s;
         // As per shift specification for Java, mask the shift count.
         shiftv = shiftv.and(IntVector.broadcast(SPECIES, 0x1f));
         return VectorIntrinsics.binaryOp(
             VECTOR_OP_LSHIFT, Int64Vector.class, int.class, LENGTH,

@@ -720,11 +720,11 @@
             (v1, v2) -> v1.bOp(v2,(i,a, b) -> (int) (a << b)));
     }
 
     @Override
     @ForceInline
-    public Int64Vector shiftR(Vector<Integer> s) {
+    public Int64Vector shiftRight(Vector<Integer> s) {
         Int64Vector shiftv = (Int64Vector)s;
         // As per shift specification for Java, mask the shift count.
         shiftv = shiftv.and(IntVector.broadcast(SPECIES, 0x1f));
         return VectorIntrinsics.binaryOp(
             VECTOR_OP_URSHIFT, Int64Vector.class, int.class, LENGTH,

@@ -732,11 +732,11 @@
             (v1, v2) -> v1.bOp(v2,(i,a, b) -> (int) (a >>> b)));
     }
 
     @Override
     @ForceInline
-    public Int64Vector aShiftR(Vector<Integer> s) {
+    public Int64Vector shiftArithmeticRight(Vector<Integer> s) {
         Int64Vector shiftv = (Int64Vector)s;
         // As per shift specification for Java, mask the shift count.
         shiftv = shiftv.and(IntVector.broadcast(SPECIES, 0x1f));
         return VectorIntrinsics.binaryOp(
             VECTOR_OP_RSHIFT, Int64Vector.class, int.class, LENGTH,

@@ -1105,21 +1105,21 @@
         }
         return new Float64Vector(res);
     }
 
     @Override
-    public Int64Vector rotateEL(int j) {
+    public Int64Vector rotateLanesLeft(int j) {
         int[] vec = getElements();
         int[] res = new int[length()];
         for (int i = 0; i < length(); i++){
             res[(j + i) % length()] = vec[i];
         }
         return new Int64Vector(res);
     }
 
     @Override
-    public Int64Vector rotateER(int j) {
+    public Int64Vector rotateLanesRight(int j) {
         int[] vec = getElements();
         int[] res = new int[length()];
         for (int i = 0; i < length(); i++){
             int z = i - j;
             if(j < 0) {

@@ -1130,21 +1130,21 @@
         }
         return new Int64Vector(res);
     }
 
     @Override
-    public Int64Vector shiftEL(int j) {
+    public Int64Vector shiftLanesLeft(int j) {
         int[] vec = getElements();
         int[] res = new int[length()];
         for (int i = 0; i < length() - j; i++) {
             res[i] = vec[i + j];
         }
         return new Int64Vector(res);
     }
 
     @Override
-    public Int64Vector shiftER(int j) {
+    public Int64Vector shiftLanesRight(int j) {
         int[] vec = getElements();
         int[] res = new int[length()];
         for (int i = 0; i < length() - j; i++){
             res[i + j] = vec[i];
         }
< prev index next >