< prev index next >

src/jdk.incubator.vector/share/classes/jdk/incubator/vector/package-info.java

Print this page

        

*** 102,112 **** * } * } * }</pre> * * The scalar computation after the vector computation is required to process the tail of ! * elements, the length of which is smaller than the species length. * * The example above uses vectors hardcoded to a concrete shape (512-bit). Instead, we could use preferred * species as shown below, to make the code dynamically adapt to optimal shape for the platform on which it runs. * * <pre>{@code --- 102,114 ---- * } * } * }</pre> * * The scalar computation after the vector computation is required to process the tail of ! * elements, the length of which is smaller than the species length. {@code VectorSpecies} also defines a ! * {@link jdk.incubator.vector.VectorSpecies#loopBound(int) loopBound()} helper method which can be used in place of ! * {@code (a.length & ~(SPECIES.length() - 1))} in the above code to determine the terminating condition. * * The example above uses vectors hardcoded to a concrete shape (512-bit). Instead, we could use preferred * species as shown below, to make the code dynamically adapt to optimal shape for the platform on which it runs. * * <pre>{@code
< prev index next >