News for hackers. Stuff that matters.
Re:Ara: A 1 GHz+ Scalable and Energy-Efficient RISC-V Vector... by garmaine on Saturday June 08, 2019 @03:43AM (#20131160)
> What are the users for popcount?

https://en.wikipedia.org/wiki/Hamming_distance#History_and_a...

EDIT: What might not have been obvious is that popcount combines with other operations well. E.g. popcount(A ^ B) gives the number of bits that differ. popcount(A & B) gives the number of bits that are the same. popcount(A) gives the number of options set in a flag field. etc., etc.

There are no comments on this comment yet.