You're viewing a comment by John Doe and its responses.

John Doe Permalink
July 01, 2009, 15:11

An addition to my previous comment: I'm assuming you meant "Bit Hack #6. Turn off ONLY the rightmost 1-bit."

If you don't care about the other bits, then you're right, but then, of course, what's the point?

Comment Responses

vaibhav Permalink
October 20, 2010, 22:34

Very useful in this data structure:
http://www.topcoder.com/tc?module=Static&d1=tutorials&d2=binaryIndexedTrees

Its also what led to (x & -x) when I read about it.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "linux_143": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.