Newsgroups: comp.arch Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!ficc!peter From: peter@ficc.ferranti.com (peter da silva) Subject: Re: IEEE arithmetic (Goldberg paper) Message-ID: Organization: Ferranti International Controls Corporation References: <9106052113.AA14439@ucbvax.Berkeley.EDU> <3652@charon.cwi.nl> Date: Fri, 14 Jun 91 17:24:56 GMT In article , glew@pdx007.intel.com (Andy Glew) writes: > In this programming model expressions like 0.0 * b arise frequently. > And it sure would be nice if they could be optimized away. Couldn't you do something like: #define foo(...,x,...) ...((x)?((x) * b):(0.0))... This should give the compiler a clue, no? -- Peter da Silva; Ferranti International Controls Corporation; +1 713 274 5180; Sugar Land, TX 77487-5012; `-_-' "Have you hugged your wolf, today?"