Give a oneline C expression to test whether a number is a power of 2?
printf("%u=%u\n", x, ((x & ~(x - 1)) == x));