< prev index next >

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

Print this page

        

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

@@ -299,48 +299,48 @@
 
     @Override
     @ForceInline
     public FloatVector reshape(VectorSpecies<Float> s) {
         Objects.requireNonNull(s);
-        if (s.bitSize() == 64 && (s.boxType() == Float64Vector.class)) {
+        if (s.bitSize() == 64 && (s.vectorType() == Float64Vector.class)) {
             return VectorIntrinsics.reinterpret(
                 FloatMaxVector.class,
                 float.class, LENGTH,
                 Float64Vector.class,
                 float.class, Float64Vector.LENGTH,
                 this, s,
                 (species, vector) -> (FloatVector) vector.defaultReinterpret(species)
             );
-        } else if (s.bitSize() == 128 && (s.boxType() == Float128Vector.class)) {
+        } else if (s.bitSize() == 128 && (s.vectorType() == Float128Vector.class)) {
             return VectorIntrinsics.reinterpret(
                 FloatMaxVector.class,
                 float.class, LENGTH,
                 Float128Vector.class,
                 float.class, Float128Vector.LENGTH,
                 this, s,
                 (species, vector) -> (FloatVector) vector.defaultReinterpret(species)
             );
-        } else if (s.bitSize() == 256 && (s.boxType() == Float256Vector.class)) {
+        } else if (s.bitSize() == 256 && (s.vectorType() == Float256Vector.class)) {
             return VectorIntrinsics.reinterpret(
                 FloatMaxVector.class,
                 float.class, LENGTH,
                 Float256Vector.class,
                 float.class, Float256Vector.LENGTH,
                 this, s,
                 (species, vector) -> (FloatVector) vector.defaultReinterpret(species)
             );
-        } else if (s.bitSize() == 512 && (s.boxType() == Float512Vector.class)) {
+        } else if (s.bitSize() == 512 && (s.vectorType() == Float512Vector.class)) {
             return VectorIntrinsics.reinterpret(
                 FloatMaxVector.class,
                 float.class, LENGTH,
                 Float512Vector.class,
                 float.class, Float512Vector.LENGTH,
                 this, s,
                 (species, vector) -> (FloatVector) vector.defaultReinterpret(species)
             );
         } else if ((s.bitSize() > 0) && (s.bitSize() <= 2048)
-                && (s.bitSize() % 128 == 0) && (s.boxType() == FloatMaxVector.class)) {
+                && (s.bitSize() % 128 == 0) && (s.vectorType() == FloatMaxVector.class)) {
             return VectorIntrinsics.reinterpret(
                 FloatMaxVector.class,
                 float.class, LENGTH,
                 FloatMaxVector.class,
                 float.class, FloatMaxVector.LENGTH,

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

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