[vector] Add non-masked Vector. intoByteArray accepting a byte order
john.r.rose at oracle.com
Wed May 6 01:48:40 UTC 2020
FTR, I intentionally left that out, because if a programmer
wants to specify a byte order, it’s a pretty simple matter to
specify a mask also. You simply say:
Vector data = …;
data.intoByteArray(a, 0, bo, data.maskAll(true));
The presence of Vector::maskAll (like the presence of Vector::broadcast)
reduces the pressure to multiply out all the masked and unmasked variants
(or all broadcast-scalar and vector-lane-wise variants) of many API points.
On May 5, 2020, at 5:14 PM, Paul Sandoz <paul.sandoz at oracle.com> wrote:
> Please review the following that adds a missing non-masked Vector. intoByteArray accepting a byte order:
> http://cr.openjdk.java.net/~psandoz/panama/vector-intoByteArray-with-byte-order/webrev/ <http://cr.openjdk.java.net/~psandoz/panama/vector-intoByteArray-with-byte-order/webrev/>
> Tests have also been expanded to operate over the byte order values.
More information about the panama-dev