--- old/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/DoubleMaxVector.java 2019-04-17 23:03:50.039343100 -0700 +++ new/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/DoubleMaxVector.java 2019-04-17 23:03:49.549028500 -0700 @@ -179,37 +179,37 @@ if (stype == byte.class) { byte[] a = new byte[limit]; for (int i = 0; i < limit; i++) { - a[i] = (byte) this.get(i); + a[i] = (byte) this.lane(i); } return (Vector) ByteVector.fromArray((VectorSpecies) s, a, 0); } else if (stype == short.class) { short[] a = new short[limit]; for (int i = 0; i < limit; i++) { - a[i] = (short) this.get(i); + a[i] = (short) this.lane(i); } return (Vector) ShortVector.fromArray((VectorSpecies) s, a, 0); } else if (stype == int.class) { int[] a = new int[limit]; for (int i = 0; i < limit; i++) { - a[i] = (int) this.get(i); + a[i] = (int) this.lane(i); } return (Vector) IntVector.fromArray((VectorSpecies) s, a, 0); } else if (stype == long.class) { long[] a = new long[limit]; for (int i = 0; i < limit; i++) { - a[i] = (long) this.get(i); + a[i] = (long) this.lane(i); } return (Vector) LongVector.fromArray((VectorSpecies) s, a, 0); } else if (stype == float.class) { float[] a = new float[limit]; for (int i = 0; i < limit; i++) { - a[i] = (float) this.get(i); + a[i] = (float) this.lane(i); } return (Vector) FloatVector.fromArray((VectorSpecies) s, a, 0); } else if (stype == double.class) { double[] a = new double[limit]; for (int i = 0; i < limit; i++) { - a[i] = (double) this.get(i); + a[i] = (double) this.lane(i); } return (Vector) DoubleVector.fromArray((VectorSpecies) s, a, 0); } else { @@ -1228,8 +1228,8 @@ DoubleMaxVector.class, DoubleMaxShuffle.class, double.class, LENGTH, this, s, (v1, s_) -> v1.uOp((i, a) -> { - int ei = s_.getElement(i); - return v1.get(ei); + int ei = s_.lane(i); + return v1.lane(ei); })); } @@ -1244,13 +1244,13 @@ return VectorIntrinsics.blend( DoubleMaxVector.class, DoubleMaxMask.class, double.class, LENGTH, this, v, m, - (v1, v2, m_) -> v1.bOp(v2, (i, a, b) -> m_.getElement(i) ? b : a)); + (v1, v2, m_) -> v1.bOp(v2, (i, a, b) -> m_.lane(i) ? b : a)); } // Accessors @Override - public double get(int i) { + public double lane(int i) { if (i < 0 || i >= LENGTH) { throw new IllegalArgumentException("Index " + i + " must be zero or positive, and less than " + LENGTH); } @@ -1452,7 +1452,7 @@ public DoubleVector toVector() { double[] va = new double[SPECIES.length()]; for (int i = 0; i < va.length; i++) { - va[i] = (double) getElement(i); + va[i] = (double) lane(i); } return DoubleVector.fromArray(SPECIES, va, 0); }