Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ll-xn!ames!oliveb!sun!gorodish!guy From: guy%gorodish@Sun.COM (Guy Harris) Newsgroups: comp.lang.c Subject: Re: Optimizing Floating-Point Expression Evaluation Message-ID: <16675@sun.uucp> Date: Tue, 14-Apr-87 13:18:02 EST Article-I.D.: sun.16675 Posted: Tue Apr 14 13:18:02 1987 Date-Received: Sun, 19-Apr-87 04:18:17 EST References: <16646@sun.uucp> Sender: news@sun.uucp Reply-To: guy@sun.UUCP (Guy Harris) Organization: Sun Microsystems, Mountain View Lines: 12 Keywords: float point expression > I am NOT talking about integer expression evaluation. >In C, I can readily believe that there is a significant body of >code that was written with the expectation that constants would >be combined despite parentheses. I don't think it was wise to >code that way, Given that a lot of code was written in this fashion because it used macros, what's your alternative? Macros provide a good facility for isolating various abstractions (e.g., the number of disk blocks required to hold N bytes), and many times an expression involving several such macros can be evaluated more efficiently if constants are combined despite parentheses.