RFR: 8304450: [vectorapi] Refactor VectorShuffle implementation [v2]

Paul Sandoz psandoz at openjdk.org
Tue Mar 21 16:16:35 UTC 2023


On Tue, 21 Mar 2023 10:18:19 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:

> Note that generics are erased, so from the VM point of view, a `VectorMask<E>` and a `VectorMask` is indifferent.

Yes, that's the easy bit :-) The mask implementation is specialized by the species of vectors it operates on, but does it have to be and can we make it independent of the species and bind to the lane count? 

Then the user does not need to explicitly cast from and to species that have the same lane count, which means we can remove the VectorMask::cast method (since it already throws if the lane counts are not equal).

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13093#issuecomment-1478069401


More information about the core-libs-dev mailing list