Date: 23 Jul 2001 14:49:19 -0000 Message-ID: <20010723144919.12634.qmail@tyr.diku.dk> From: Morten Welinder To: djgpp-workers AT delorie DOT com In-reply-to: <20010723094416.A20877@kendall.sfbr.org> (message from JT Williams on Mon, 23 Jul 2001 09:44:16 -0500) Subject: Re: gcc 3.0 test References: <20010723094416 DOT A20877 AT kendall DOT sfbr DOT org> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk static double dsqrarg; #define DSQR(a) ((dsqrarg=(a)) == 0.0 ? 0.0 : dsqrarg*dsqrarg) [...] txy = (xi == yj ? DSQR(pxi) : DSQR(pxi) + DSQR(pyj)); That addition is evil: both sides contain a side effect of dsqrarg. Suggestion: make DSQR an inline function. Morten