Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!altos!altos86!clp From: clp@altos86.Altos.COM (Chuck L. Peterson) Newsgroups: comp.lang.c Subject: Using distributive property to optimize. Message-ID: <229@altos86.Altos.COM> Date: 2 Feb 90 22:29:21 GMT Organization: Altos Computer Systems, San Jose, CA Lines: 12 We just noticed that this old 286 XENIX compiler we have floating around changes the statement: n = a - (b + c); To this: n = a - b - c; Anyone know if it is valid for a C Compiler to do this? The two will most certainly give different results when dealing with overflow/underflow conditions. Chuck L. Peterson clp@altos.com