log2(a,b)1 log2 (a, b)
2 {
3   int c;
4   c = ~(~a & ~b);
5   return c;
6 }
7