Bit Twiddling Hacks

Ever want to compute a modulus without using division? How about swapping the values of two variables without using a temporary variable? Well, now you can with these and loads of other hacks at Bit Twiddling Hacks. Written in C, the site provides numerous ways to perform simple calculations without sacrificing performance.

Found via Melissa.

Have something to tell us about this article?
Let us know

or Comment Below

LOGIN to Comment
LOGIN to Comment

Got a tip?

Let us know