From: dwilliss@csealumni.unl.edu (David Williss)
Subject: IEEE Floating Point problem
Date: 1 Sep 1994 16:43:53 GMT [thread overview]
Message-ID: <3450c9$hvg@crcnis1.unl.edu> (raw)
I have a problem with floating point on our OSF/1 machine (It's a DEC
Alpha). IEEE specifies that the result of dividing anything by 0
should be INF or -INF (depending on the numerator), with the exception
that 0/0 and INF/INF are both NaN (Not A Number).
On our alpha/OSF/1, These procuded FP Exceptions and exited with a
core dump. I found the man page ieee(3), and it gave some suggestions,
none of which did what I wanted.
If you set it up to ignore SIGFPE, the result of 1/0 is 0 (not INF).
It suggested the compiler flag -resumption_safe, which it says will
make it produce the correct IEEE result, but it still gives 0.
I tried the flag on the cc compiler. gcc doesn't even have the flag.
Is there any way to get this to behave correctly?
--
David C. Williss #include <StdDisclaimer.h>
Software Engineer -- MicroImages, Inc. dwilliss@microimages.com
Voice: (402) 477-9562 FAX: (402) 477-9559 dwilliss@csealumni.unl.edu
next reply other threads:[~1994-09-01 16:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-09-01 16:43 David Williss [this message]
1994-09-02 7:50 ` IEEE Floating Point problem Burkhard Neidecker-Lutz
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox