Date: Tue, 21 Mar 2000 09:24:09 +0000 From: David Malone <dwmalone@maths.tcd.ie> To: Martin Cracauer <cracauer@cons.org> Cc: current@FreeBSD.ORG Subject: Re: Floating point exceptions. Message-ID: <200003210924.aa02305@salmon.maths.tcd.ie> In-Reply-To: Your message of "Tue, 21 Mar 2000 09:50:24 %2B0100." <20000321095024.A1011@cons.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> > There was a discussion on one of the list about what to do for > > floating point excpetions recently, and I thought people decided > > that causing a signal by default was a right thing? > > The outcome was that applications that care must set the control word > themself and that we go the way of least resistance for the rest. OK - I just did a quick scout around. Digital Unix gives a SIGFPE; Solaris, AIX and Redhat print some captalisation of "Inf"; HP/UX prints "++.000000" ;-) Is there a way of setting the control word which is in any sense portable? Most machines I've looked at seem to have no documented way of setting what exceptions should be masked, and each one that does has a different set of calls. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200003210924.aa02305>