< prev index next >
src/jdk.incubator.vector/share/classes/jdk/incubator/vector/FloatVector.java
Print this page
rev 52233 : Add scalable shapes for Arm Scalable Vector Extension.
Summary: Add scalable vector shapes to support Arm SVE better.
Reviewed-by: duke
*** 1634,1643 ****
--- 1634,1645 ----
return (FloatSpecies<S>) Float128Vector.SPECIES;
} else if (s == Shapes.S_256_BIT) {
return (FloatSpecies<S>) Float256Vector.SPECIES;
} else if (s == Shapes.S_512_BIT) {
return (FloatSpecies<S>) Float512Vector.SPECIES;
+ } else if (s == Shapes.S_Scalable_BIT) {
+ return (FloatSpecies<S>) FloatScalableVector.SPECIES;
} else {
throw new IllegalArgumentException("Bad shape: " + s);
}
}
}
< prev index next >