[vectorIntrinsics] RFR: 8265482: [vector] loading/storing byte vector from/to boolean[]
Vladimir Ivanov
vlivanov at openjdk.java.net
Tue Apr 27 17:21:54 UTC 2021
On Mon, 19 Apr 2021 20:51:52 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
> A byte value is converted to a boolean value by way of the expression (b & 1) != 0 ? true : false, where b is the byte value.
I'm curious what's the motivation for relying on `(b & 1) != 0` instead of `b != 0`?
-------------
PR: https://git.openjdk.java.net/panama-vector/pull/71
More information about the panama-dev
mailing list