[vectorIntrinsics] RFR: 8283598: [vectorapi] Add new vector operation for compress bits
Xiaohong Gong
xgong at openjdk.java.net
Tue Mar 29 08:59:08 UTC 2022
On Thu, 24 Mar 2022 08:53:11 GMT, Xiaohong Gong <xgong at openjdk.org> wrote:
>> @XiaohongGong The compression is based on the bits of `bitmask`, not on the bits of `b`, so `bitcompress(0b1001, 0b1100) = 0b10`, `bitcompress(0b0101, 0b1011) = 0b001` (The number of bits in the result I write to be equal to the number of set bits in the mask for easier visualisation).
>
> Oh, I see, thanks for the explanation!
So I think it's better to comment an example to the scalar method or API definition.
-------------
PR: https://git.openjdk.java.net/panama-vector/pull/184
More information about the panama-dev
mailing list