From: Zarmfab Software Development <fabsoft@fabsoft2.zarm.uni-bremen.de>
Subject: log(-1) raises SIGFPE
Date: Fri, 9 May 1997 16:34:27 +0200 [thread overview]
Message-ID: <9705091634.ZM22271@fabsoft2.zarm.uni-bremen.de> (raw)
Running the tcl test-suite, i found undefined mathematical operations like log(-1) always
generate SIGFPE at my avanti. Looking inside the log() function, if found that log(x) for all
x < 0 executes the following:
static double zero = 0.0;
return (x-x)/zero;
This should result in NaN, but it doesn't. Instead, the division by zero raises SIGFPE.
Surprisingly, leaving the generation of NaN's or infinite values to the compiler works:
isnan(0.0/0.0) returns 1 and isinf(1.0/0.0) returns 1, as expected.
Does the alpha's FPU not support infinities and NaN's ?
--
Martin Cornelius, ZARMFAB software development, University of Bremen
phone: 49-421-218-4807 FAX: 49-421-218-3889
email: fabsoft@zarm.uni-bremen.de
paper-mail: Hochschulring / Am Fallturm, 28359 BREMEN, Germany
--
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-05-09 14:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-05-09 14:34 Zarmfab Software Development [this message]
1997-05-09 15:19 ` log(-1) raises SIGFPE Richard Henderson
[not found] <richard@stommel.tamu.edu>
1997-05-09 16:28 ` Zarmfab Software Development
[not found] <199705091519.KAA30572@stommel.tamu.edu>
1997-05-12 19:09 ` Carlos Alberto Carvalho
1997-05-14 21:20 ` Richard Henderson
-- strict thread matches above, loose matches on Subject: below --
1997-05-13 0:22 Jim Paradis
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