Markdown/PDF Versions of Sean Anderson's http://graphics.stanford.edu/~seander/bithacks.html
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
BitHacks.html
BitHacks.md
BitHacks.pdf
README.md

README.md

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.

Note

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.