While reading the CMU intro to system course, I realized how many bit tricks are out there that could potentially boast the speed of the program. I will use this post as a place to record all the bit tricks I have seen either from this course or from other places suck as hacker’s delight.