<< Click to Display Table of Contents >> Testing Values |
The Byte Craft compiler (version 990 for example) generally implements the !=0 slightly more efficiently than ==1.
Try to use:
if (x!=0)
z = a + b;
rather than:
if (x==1)
z = a + b;
The ETEC compiler generally will generate code of the same efficiency for both versions, but there may be some cases where the former code snippet allows slightly better opcode packing, so it is still recommended it be used if possible.