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

possible speedup by using an SIMD popcount #4

Open
GoogleCodeExporter opened this issue Jun 25, 2015 · 1 comment
Open

possible speedup by using an SIMD popcount #4

GoogleCodeExporter opened this issue Jun 25, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

The gcc builtin uses a lookup table but it is possible to do better.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36041 - existing gcc bug for 
improving the builtin popcount. 

https://groups.google.com/group/comp.arch/msg/ba28c5dbd47a3bba?dmode=source&outp
ut=gplain&noredirect&pli=1 - this post by Terje Mathisen describes the technique

Original issue reported on code.google.com by dbremner@gmail.com on 17 Oct 2012 at 2:02

@GoogleCodeExporter
Copy link
Author

Thank you for hints. 
Doesn't look like high priority stuff, but feel free to provide the patch. 
Otherwise we will probably wait for the fix in gcc. 

Original comment by p...@google.com on 18 Oct 2012 at 8:58

  • Added labels: Priority-Low, Type-Enhancement
  • Removed labels: Priority-Medium, Type-Defect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant