Markdown/PDF Versions of Sean Anderson's
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Bit Hacks

Sean Anderson's wonderful compilation of Bit Twiddling Hacks, converted to a more readable Markdown version and accompanying PDF.

For a C implementation of some of the Bit Hacks, see Jeroen de Bruijn's repository here.


This is really meant to be viewed as the Markdown source, so you can easily resize the window and interact with the code. I've found the best way to interact with it is either right here on GitHub, or using the Atom editor and the markdown-preview package.

However, a PDF is also included, although currently syntax highlighting is missing until I migrate this to LaTeX.

The PDF was generated using Markdown to PDF.