Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* division by zero exceptions ?
@ 1998-10-26  5:00 Conrad Sanderson
  1998-10-26  5:00 ` Michal Jaegermann
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Conrad Sanderson @ 1998-10-26  5:00 UTC (permalink / raw)


running this C++ program on an Alpha:

void main() {
        float a = 10.0; float b = 0.0;
        float c = a/b;
        cout << "c = " << c << endl;
        }       

causes "Floating exception   Exit 136", while on Intel PII is says:
"c =    Inf", which is the "correct" answer.  

Is there any way to make the Alpha do the same thing as PII ?
I know about linking with -mieee, but that makes programs run 
too slow, so that is not a solution for me.

I'm using egcs 1.1 without optimization for the above prog.


-- 
Conrad Sanderson - Microelectronic Signal Processing Laboratory
Griffith University, Queensland, Australia
http://spl.me.gu.edu.au   [ under construction ]



^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~1998-11-03  5:00 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-10-26  5:00 division by zero exceptions ? Conrad Sanderson
1998-10-26  5:00 ` Michal Jaegermann
1998-10-27  5:00 ` Remco Wouts
1998-10-28  5:00   ` Nils Faerber
1998-10-31  5:00 ` Shana Tackett
1998-10-30  5:00   ` James D. Freels
1998-10-31  5:00     ` Toon Moene
1998-10-31  5:00       ` Anthony W. Youngman
1998-11-01  5:00         ` Stefan Davids
1998-11-01  5:00         ` Bill Metzenthen
1998-11-01  5:00           ` Anthony W. Youngman
1998-11-02  5:00             ` Stefan Davids
1998-11-02  5:00             ` Bill Metzenthen
1998-11-02  5:00               ` Conrad Sanderson
1998-11-02  5:00         ` Michal Jaegermann
1998-10-31  5:00     ` Greg Lindahl
1998-11-03  5:00     ` rscanon
1998-10-31  5:00   ` Anthony W. Youngman
1998-11-01  5:00     ` Greg Lindahl
1998-10-31  5:00   ` Bill Metzenthen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox