short circuit evaluation - some comments
franka at mmintl.UUCP
franka at mmintl.UUCP
Fri Feb 27 06:21:55 AEST 1987
In article <1287 at ucbcad.berkeley.edu> faustus at ucbcad.UUCP writes:
>I think if you're being really careful, you can't optimize away any
>arithmetic operations, because there is always the possible side effect
>of an arithmetic exception or memory error.
Not quite true. Consider "x // 4 + y // 4", where x and y have the same
integral type. The "+" operation can neither overflow nor cause a memory
error.
Frank Adams ihnp4!philabs!pwa-b!mmintl!franka
Ashton-Tate 52 Oakland Ave North E. Hartford, CT 06108
More information about the Comp.lang.c
mailing list