< prev index next >

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

Print this page

        

*** 160,170 **** throw new IllegalArgumentException("Vector length this species length differ"); return VectorIntrinsics.cast( Double64Vector.class, double.class, LENGTH, ! s.boxType(), s.elementType(), LENGTH, this, s, (species, vector) -> vector.castDefault(species) ); } --- 160,170 ---- throw new IllegalArgumentException("Vector length this species length differ"); return VectorIntrinsics.cast( Double64Vector.class, double.class, LENGTH, ! s.vectorType(), s.elementType(), LENGTH, this, s, (species, vector) -> vector.castDefault(species) ); }
*** 298,345 **** @Override @ForceInline public DoubleVector reshape(VectorSpecies<Double> s) { Objects.requireNonNull(s); ! if (s.bitSize() == 64 && (s.boxType() == Double64Vector.class)) { return VectorIntrinsics.reinterpret( Double64Vector.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( Double64Vector.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( Double64Vector.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( Double64Vector.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( Double64Vector.class, double.class, LENGTH, DoubleMaxVector.class, double.class, DoubleMaxVector.LENGTH, --- 298,345 ---- @Override @ForceInline public DoubleVector reshape(VectorSpecies<Double> s) { Objects.requireNonNull(s); ! if (s.bitSize() == 64 && (s.vectorType() == Double64Vector.class)) { return VectorIntrinsics.reinterpret( Double64Vector.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( Double64Vector.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( Double64Vector.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( Double64Vector.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( Double64Vector.class, double.class, LENGTH, DoubleMaxVector.class, double.class, DoubleMaxVector.LENGTH,
*** 1152,1172 **** return new Long64Vector(res); } @Override ! public Double64Vector 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 Double64Vector(res); } @Override ! public Double64Vector 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) { --- 1152,1172 ---- return new Long64Vector(res); } @Override ! public Double64Vector 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 Double64Vector(res); } @Override ! public Double64Vector 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) {
*** 1177,1197 **** } return new Double64Vector(res); } @Override ! public Double64Vector 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 Double64Vector(res); } @Override ! public Double64Vector shiftER(int j) { double[] vec = getElements(); double[] res = new double[length()]; for (int i = 0; i < length() - j; i++){ res[i + j] = vec[i]; } --- 1177,1197 ---- } return new Double64Vector(res); } @Override ! public Double64Vector 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 Double64Vector(res); } @Override ! public Double64Vector 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 >