Hi,
I read this question somewhere and also found its answer on the web but couldnt figure it out. can anyone pls enlighten me:

Ques:
Test if an unsigned integer is a power of two without loops or recursion?

Soln: #define power_of_two(x) \ ((x)&&(~(x&(x-1))))

Can anyone figure out what is this macro doing?
Pls try to simplify ur explanation as much as possible.

Thanks.