log2.c   [plain text]


log2 (a, b)
{
  int c;
  c = ~(~a & ~b);
  return c;
}