On Tue, 21 Mar 2023 10:18:19 GMT, Quan Anh Mai <qa...@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

Reply via email to