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

Gaming Trailers

More Like This
Fortnite: Let Them Know | Gameplay Trailer
Latest Trailers
House Flipper | Official Gameplay Trailer

Got a tip?

Let us know