[vectorIntrinsics] RFR: 8282389: Add new vector operations to count leading and trailing zeros.
Quan Anh Mai
duke at openjdk.java.net
Thu Mar 3 12:04:25 UTC 2022
On Thu, 3 Mar 2022 11:57:43 GMT, Quan Anh Mai <duke at openjdk.java.net> wrote:
>> Would it not return incorrect value for a=0.
>
> This could be `Integer.numberOfTrailingZeros(a | 0x100);`
And I think what he meant was the calculation of the `numberOfLeadingZeros` below
-------------
PR: https://git.openjdk.java.net/panama-vector/pull/176
More information about the panama-dev
mailing list