On 4/12/2019 10:18 PM, H. S. Teoh wrote:
> writing (x % 2) conveys intent much better
> than (x & 1).
They produced different code. Try this with your favorite C compiler:
int foo(int x)
{
return x % 2;
}
int bar(int x)
{
return x & 1;
}