From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9705091634.ZM22271@fabsoft2.zarm.uni-bremen.de> Date: Fri, 9 May 1997 16:34:27 +0200 From: Zarmfab Software Development Subject: log(-1) raises SIGFPE 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