Give a oneline C expression to test whether a number is a power of 2?
I think if (x & (x-1)) wont work when number is negative.