CCoding Style - Parenthesize to resolve ambiguity2
Parenthesize to resolve ambiguity ...
The bit wise operators & and ! have lower precedence than relational operations like ==, so despite its appearance,
if( x & MASK == BITS )
if( x & (MASK == BITS ) )
which is certainly not the programmer’s intent
if( (x & MASK) == BITS )