< prev index next >

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

Print this page

        

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

@@ -298,48 +298,48 @@
 
     @Override
     @ForceInline
     public LongVector reshape(VectorSpecies<Long> s) {
         Objects.requireNonNull(s);
-        if (s.bitSize() == 64 && (s.boxType() == Long64Vector.class)) {
+        if (s.bitSize() == 64 && (s.vectorType() == Long64Vector.class)) {
             return VectorIntrinsics.reinterpret(
                 Long64Vector.class,
                 long.class, LENGTH,
                 Long64Vector.class,
                 long.class, Long64Vector.LENGTH,
                 this, s,
                 (species, vector) -> (LongVector) vector.defaultReinterpret(species)
             );
-        } else if (s.bitSize() == 128 && (s.boxType() == Long128Vector.class)) {
+        } else if (s.bitSize() == 128 && (s.vectorType() == Long128Vector.class)) {
             return VectorIntrinsics.reinterpret(
                 Long64Vector.class,
                 long.class, LENGTH,
                 Long128Vector.class,
                 long.class, Long128Vector.LENGTH,
                 this, s,
                 (species, vector) -> (LongVector) vector.defaultReinterpret(species)
             );
-        } else if (s.bitSize() == 256 && (s.boxType() == Long256Vector.class)) {
+        } else if (s.bitSize() == 256 && (s.vectorType() == Long256Vector.class)) {
             return VectorIntrinsics.reinterpret(
                 Long64Vector.class,
                 long.class, LENGTH,
                 Long256Vector.class,
                 long.class, Long256Vector.LENGTH,
                 this, s,
                 (species, vector) -> (LongVector) vector.defaultReinterpret(species)
             );
-        } else if (s.bitSize() == 512 && (s.boxType() == Long512Vector.class)) {
+        } else if (s.bitSize() == 512 && (s.vectorType() == Long512Vector.class)) {
             return VectorIntrinsics.reinterpret(
                 Long64Vector.class,
                 long.class, LENGTH,
                 Long512Vector.class,
                 long.class, Long512Vector.LENGTH,
                 this, s,
                 (species, vector) -> (LongVector) vector.defaultReinterpret(species)
             );
         } else if ((s.bitSize() > 0) && (s.bitSize() <= 2048)
-                && (s.bitSize() % 128 == 0) && (s.boxType() == LongMaxVector.class)) {
+                && (s.bitSize() % 128 == 0) && (s.vectorType() == LongMaxVector.class)) {
             return VectorIntrinsics.reinterpret(
                 Long64Vector.class,
                 long.class, LENGTH,
                 LongMaxVector.class,
                 long.class, LongMaxVector.LENGTH,

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

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

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

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

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