[vectorIntrinsics] RFR: 8281562:[vectorapi] Add support for popcount operation

Smita Kamath svkamath at openjdk.java.net
Thu Feb 10 00:59:35 UTC 2022


On Wed, 9 Feb 2022 23:09:26 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

>> 8281562:[vectorapi] Add support for popcount operation
>
> src/jdk.incubator.vector/share/classes/jdk/incubator/vector/LongVector.java line 449:
> 
>> 447:     /*package-private*/
>> 448:     @ForceInline
>> 449:     static int popcount(long a) {
> 
> Method is unnecessary.

@PaulSandoz Byte and Short types don't have a bitCount method. I will need this supporting method when I implement popcount for them. Do you think it's alright to keep this method? Do let me know. Thank you.

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

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


More information about the panama-dev mailing list