Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIMD Harley-Seal Population Count #165

Closed
saik0 opened this issue Jan 30, 2022 · 3 comments
Closed

SIMD Harley-Seal Population Count #165

saik0 opened this issue Jan 30, 2022 · 3 comments

Comments

@saik0
Copy link
Contributor

saik0 commented Jan 30, 2022

arXiv:1709.07821 Roaring Bitmaps: Implementation of an Optimized Software Library (Section 4.1.1)

arXiv:1611.07612 Faster Population Counts Using AVX2 Instructions

Our approach has been adopted by LLVM: it is used by its popular C compiler (clang).

Is this already done?

@Kerollmops
Copy link
Member

I am pretty sure it hasn't been implemented.

@saik0
Copy link
Contributor Author

saik0 commented Jan 30, 2022

Our approach has been adopted by LLVM: it is used by its popular C compiler (clang).

llvm might be doing it for us :)

@saik0
Copy link
Contributor Author

saik0 commented Jan 30, 2022

It does. Both for counting cardinality, and for counting while performing a set op.

https://godbolt.org/z/EKb3qvj5T

@saik0 saik0 closed this as completed Jan 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants