Low level bit hacks

I came across a very interesting article on Peteris Krumin’s blog on how to use boolean operators to perform really useful low level bit hacks.

Most people are used to just using AND and OR operators on integers, but this article goes into much more detail, explaining good – and fast – ways to manipulate integers at a bit level.

It is well worth it to go and check it out.


  1. very usefull notes and we need more information on this topic please post updated data . thanks for your post.
    Dot net online tutorials


  2. nice post and site, good work! This article is well written and quite informative.

    sas online training in hyderabad