From: Eric Woudenberg <eaw@hip.atr.co.jp>
Subject: How to get DEC OSF1 floating point behavior?
Date: Wed, 17 Sep 1997 10:37:00 +0900 [thread overview]
Message-ID: <9709170137.AA04133@batu.hip.atr.co.jp> (raw)
Hi,
I'm a happy Alpha Linux 4.2 user but I'd like to get "normal" Unix
behavior on floating point overflow. This statement:
double a = 1.0/exp(720);
on OSF1, SunOS, and HP-UX quietly sets a to 0.0. On Linux is causes
an FPE trap, even if I set SIGFPE to SIG_IGN.
Any suggestions for how to get back to the old "silent" behavior?
Thanks,
Rick Woudenberg
-----------------------------------
My test program:
#include <signal.h>
double exp();
main()
{
double e;
printf("signal = %d\n", signal(SIGFPE, SIG_IGN));
e = 1.0/exp(720.0);
printf("e = %e\n", e);
}
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-09-17 1:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-09-17 1:37 Eric Woudenberg [this message]
1997-09-17 2:38 ` How to get DEC OSF1 floating point behavior? Andrew D. Isaacson
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