This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

if(x & 0x0f == 0) { do something } versus if(!(x & 0x0f) { }

Maybe i have missed an ANSI C rule?? With old compiler (V3.40) both versions show the same results. With new compiler versions the first version recognizes dead code which is eliminated.

Werner

Parents Reply Children
No data