[vector] Is Mask inverted in XXXVector.xxxAll(Mask<>)?
Lev Serebryakov
lev at serebryakov.spb.ru
Fri Mar 22 19:15:51 UTC 2019
On 22.03.2019 20:21, Vladimir Ivanov wrote:
> Thanks for the input, Lev. Can you elaborate, please, what misled you in
> the Javadoc?
>
> /**
> * Blends the lane elements of this vector with those of an input
> vector,
> * selecting lanes controlled by a mask.
> * <p>
> * For each lane of the mask, at lane index {@code N}, if the mask lane
> * is set then the lane element at {@code N} from the input vector is
> * selected and placed into the resulting vector at {@code N},
> * otherwise the the lane element at {@code N} from this input
> vector is
> * selected and placed into the resulting vector at {@code N}.
It is easy to miss distinction between "input vector" and "this input
vector", IMHO. Both are "input vectors" and it is easy to miss "this".
To be honest, I've seen it from third reading. But maybe, it is my
personal problem.
--
// Black Lion AKA Lev Serebryakov
More information about the panama-dev
mailing list