Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!primerd!hobbiton!fieland From: fieland@hobbiton.prime.com Newsgroups: comp.lang.fortran Subject: Re: Sun FPU question Message-ID: <26400002@hobbiton> Date: 6 Mar 89 21:25:00 GMT References: <331@kvasir.esosun.UUCP> Lines: 16 Nf-ID: #R:kvasir.esosun.UUCP:-33100:hobbiton:26400002:000:445 Nf-From: hobbiton.prime.com!fieland Mar 6 16:25:00 1989 You might be interested in a few facts about the Mips fortran compiler. Sometimes constant folding in the front end of the Mips fortran compiler results in Inf or NaN being assign to the variable at compile time, as in r = 0.0/0.0 or r = 1.0 / 0.0 Unfortunately, even compiling with optimization level zero (no optimization) doesn't turn this off. However, r1 = 0 r = 0 / r1 does seem to be calculated at execution time.