foo(unsigned int x)
{
  return (x << 1) | (x >> 31);
}


syntax highlighted by Code2HTML, v. 0.9.1