Shop OBEX P1 Docs P2 Docs Learn Events
Bit Twiddling Hacks — Parallax Forums

Bit Twiddling Hacks

ctwardellctwardell Posts: 1,716
edited 2011-03-12 11:25 in General Discussion
A friend of mine recently had a job interview where one of the questions was to show a solution for counting the number of set bits in a large group of integers. While discussing this with him afterward I found this page of algorithms that may be of interest.

http://graphics.stanford.edu/~seander/bithacks.html

C.W.
Sign In or Register to comment.