From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2e63a9502345cf7d X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-11-07 08:18:07 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!caen!crl.dec.com!crl.dec.com!pa.dec.com!nestvx.enet.dec.com!neideck From: neideck@nestvx.enet.dec.com (Burkhard Neidecker-Lutz) Newsgroups: comp.unix.osf.osf1 Subject: Re: Need help with FPE control Date: 7 Nov 1994 15:26:12 GMT Organization: CEC Karlsruhe Message-ID: <39lgukINNds1@usenet.pa.dec.com> References: NNTP-Posting-Host: BIER In article ian@flash.ds.boeing.com (Ian Searle) writes: >I have been trying to set up a C program on a DEC-Alpha running OSF so >that the following will behave properly (ala IEEE-754) > > 1/0 + 1 => Inf > >I can get the Alpha to ignore the FPE, or use my own signal handler, >but I cannot get it to work properly with Infs and NaNs. > >I have been using the compiler flag -resumption_safe, and >ieee_fp_get_control() and ieee_fp_set_control() all to no avail. Mmh. Works for me. % uname -a OSF1 sand2.kar.dec.com V3.0 347 alpha % cat a.c #include main(argc,argv) int argc; char *argv[]; { double a , b; a = 1.0; b = 0.0; printf("%f\n", a/b + a); } % cc -ieee_with_no_inexact a.c ./a.out % ./a.out INF Burkhard Neidecker-Lutz GLASS Project, CEC Karlsruhe Advanced Technology Group, Digital Equipment Corporation neideck@nestvx.enet.dec.com