News for hackers. Stuff that matters.
Re:Ten Ways to Check if an Integer Is a Power Of Two in C by chime on Tuesday July 26, 2011 @10:53AM (#2807599)
That was #9:

    int isPowerOfTwo (unsigned int x)
    {
      return ((x != 0) && !(x & (x - 1)));
    }

There are no comments on this comment yet.