>Mark Scandariato wrote: >> So, based on http://www-db.stanford.edu/~manku/bitcount/bitcount.html, >> something like these might do (for 32bit or smaller ints): Folks, A big thanks to all who replied! I now have a lot of solutions to choose from :D. Thanks, Joel -- http://wagerlabs.com/tech