News for hackers. Stuff that matters.
Re:Ten Ways to Check if an Integer Is a Power Of Two in C by kqueue on Tuesday July 26, 2011 @02:53PM (#2808892)
if x is unsigned, then:

(x & (x - 1)) == 0

There are no comments on this comment yet.