[vectorIntrinsics] RFR: 8283598: [vectorapi] Add new vector operation for compress bits

Smita Kamath svkamath at openjdk.java.net
Mon Mar 28 23:40:08 UTC 2022


On Mon, 28 Mar 2022 22:43:57 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

>> I think i mistook the intended implementation when writing the JEP.
>> 
>> Since there is no scalar equivalent the operation is currently under specified, and in this case I think the expand operation also makes sense so `compress(expand(x, m), m) = x`
>
> Just talked with @sviswa7. I will update the JEP. Also, i will follow up on scalar integral implementations for compress/expand bits, where the `Byte`/`Short` implementations defer to that on `Integer`. Intrinsic scalar implementations can be implemented afterwards.

Hi @PaulSandoz, do you think this implementation of compress bits is fine? I can plan to create a separate PR for expand bits operation. Do let me know. Thanks.

-------------

PR: https://git.openjdk.java.net/panama-vector/pull/184


More information about the panama-dev mailing list