Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bogomipz
on Sept 9, 2019
|
parent
|
context
|
favorite
| on:
Popcount CPU instruction
>"There are three or four reasonable ways to implement it in c, including one weird trick,..."
Might you or anyone else have any links or resources you could share on these three or four ways?
eesmith
on Sept 9, 2019
[–]
Several have already been posted/mentioned. There's also
https://en.wikipedia.org/wiki/Hamming_weight
with a few implementations.
Consider applying for YC's W25 batch! Applications are open till Nov 12.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Might you or anyone else have any links or resources you could share on these three or four ways?