< prev index next >

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

Print this page

        

*** 161,171 **** throw new IllegalArgumentException("Vector length this species length differ"); return VectorIntrinsics.cast( Double128Vector.class, double.class, LENGTH, ! s.boxType(), s.elementType(), LENGTH, this, s, (species, vector) -> vector.castDefault(species) ); } --- 161,171 ---- throw new IllegalArgumentException("Vector length this species length differ"); return VectorIntrinsics.cast( Double128Vector.class, double.class, LENGTH, ! s.vectorType(), s.elementType(), LENGTH, this, s, (species, vector) -> vector.castDefault(species) ); }
*** 299,346 **** @Override @ForceInline public DoubleVector reshape(VectorSpecies<Double> s) { Objects.requireNonNull(s); ! if (s.bitSize() == 64 && (s.boxType() == Double64Vector.class)) { return VectorIntrinsics.reinterpret( Double128Vector.class, double.class, LENGTH, Double64Vector.class, double.class, Double64Vector.LENGTH, this, s, (species, vector) -> (DoubleVector) vector.defaultReinterpret(species) ); ! } else if (s.bitSize() == 128 && (s.boxType() == Double128Vector.class)) { return VectorIntrinsics.reinterpret( Double128Vector.class, double.class, LENGTH, Double128Vector.class, double.class, Double128Vector.LENGTH, this, s, (species, vector) -> (DoubleVector) vector.defaultReinterpret(species) ); ! } else if (s.bitSize() == 256 && (s.boxType() == Double256Vector.class)) { return VectorIntrinsics.reinterpret( Double128Vector.class, double.class, LENGTH, Double256Vector.class, double.class, Double256Vector.LENGTH, this, s, (species, vector) -> (DoubleVector) vector.defaultReinterpret(species) ); ! } else if (s.bitSize() == 512 && (s.boxType() == Double512Vector.class)) { return VectorIntrinsics.reinterpret( Double128Vector.class, double.class, LENGTH, Double512Vector.class, double.class, Double512Vector.LENGTH, this, s, (species, vector) -> (DoubleVector) vector.defaultReinterpret(species) ); } else if ((s.bitSize() > 0) && (s.bitSize() <= 2048) ! && (s.bitSize() % 128 == 0) && (s.boxType() == DoubleMaxVector.class)) { return VectorIntrinsics.reinterpret( Double128Vector.class, double.class, LENGTH, DoubleMaxVector.class, double.class, DoubleMaxVector.LENGTH, --- 299,346 ---- @Override @ForceInline public DoubleVector reshape(VectorSpecies<Double> s) { Objects.requireNonNull(s); ! if (s.bitSize() == 64 && (s.vectorType() == Double64Vector.class)) { return VectorIntrinsics.reinterpret( Double128Vector.class, double.class, LENGTH, Double64Vector.class, double.class, Double64Vector.LENGTH, this, s, (species, vector) -> (DoubleVector) vector.defaultReinterpret(species) ); ! } else if (s.bitSize() == 128 && (s.vectorType() == Double128Vector.class)) { return VectorIntrinsics.reinterpret( Double128Vector.class, double.class, LENGTH, Double128Vector.class, double.class, Double128Vector.LENGTH, this, s, (species, vector) -> (DoubleVector) vector.defaultReinterpret(species) ); ! } else if (s.bitSize() == 256 && (s.vectorType() == Double256Vector.class)) { return VectorIntrinsics.reinterpret( Double128Vector.class, double.class, LENGTH, Double256Vector.class, double.class, Double256Vector.LENGTH, this, s, (species, vector) -> (DoubleVector) vector.defaultReinterpret(species) ); ! } else if (s.bitSize() == 512 && (s.vectorType() == Double512Vector.class)) { return VectorIntrinsics.reinterpret( Double128Vector.class, double.class, LENGTH, Double512Vector.class, double.class, Double512Vector.LENGTH, this, s, (species, vector) -> (DoubleVector) vector.defaultReinterpret(species) ); } else if ((s.bitSize() > 0) && (s.bitSize() <= 2048) ! && (s.bitSize() % 128 == 0) && (s.vectorType() == DoubleMaxVector.class)) { return VectorIntrinsics.reinterpret( Double128Vector.class, double.class, LENGTH, DoubleMaxVector.class, double.class, DoubleMaxVector.LENGTH,
*** 1165,1185 **** return new Long128Vector(res); } @Override ! public Double128Vector rotateEL(int j) { double[] vec = getElements(); double[] res = new double[length()]; for (int i = 0; i < length(); i++){ res[(j + i) % length()] = vec[i]; } return new Double128Vector(res); } @Override ! public Double128Vector rotateER(int j) { double[] vec = getElements(); double[] res = new double[length()]; for (int i = 0; i < length(); i++){ int z = i - j; if(j < 0) { --- 1165,1185 ---- return new Long128Vector(res); } @Override ! public Double128Vector rotateLanesLeft(int j) { double[] vec = getElements(); double[] res = new double[length()]; for (int i = 0; i < length(); i++){ res[(j + i) % length()] = vec[i]; } return new Double128Vector(res); } @Override ! public Double128Vector rotateLanesRight(int j) { double[] vec = getElements(); double[] res = new double[length()]; for (int i = 0; i < length(); i++){ int z = i - j; if(j < 0) {
*** 1190,1210 **** } return new Double128Vector(res); } @Override ! public Double128Vector shiftEL(int j) { double[] vec = getElements(); double[] res = new double[length()]; for (int i = 0; i < length() - j; i++) { res[i] = vec[i + j]; } return new Double128Vector(res); } @Override ! public Double128Vector shiftER(int j) { double[] vec = getElements(); double[] res = new double[length()]; for (int i = 0; i < length() - j; i++){ res[i + j] = vec[i]; } --- 1190,1210 ---- } return new Double128Vector(res); } @Override ! public Double128Vector shiftLanesLeft(int j) { double[] vec = getElements(); double[] res = new double[length()]; for (int i = 0; i < length() - j; i++) { res[i] = vec[i + j]; } return new Double128Vector(res); } @Override ! public Double128Vector shiftLanesRight(int j) { double[] vec = getElements(); double[] res = new double[length()]; for (int i = 0; i < length() - j; i++){ res[i + j] = vec[i]; }
< prev index next >