Full threadvColin·Another related bit twiddling resource: http://graphics.stanford.edu/~seander/bithacks.html.The comments accompanying the code are interesting too.View on HN