From owner-freebsd-current Tue Mar 21 1:24:16 2000 Delivered-To: freebsd-current@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 5954937B6DC for ; Tue, 21 Mar 2000 01:24:10 -0800 (PST) (envelope-from dwmalone@maths.tcd.ie) Received: from hamilton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 21 Mar 2000 09:24:09 +0000 (GMT) To: Martin Cracauer Cc: current@FreeBSD.ORG Subject: Re: Floating point exceptions. In-reply-to: Your message of "Tue, 21 Mar 2000 09:50:24 +0100." <20000321095024.A1011@cons.org> X-Request-Do: Date: Tue, 21 Mar 2000 09:24:09 +0000 From: David Malone Message-ID: <200003210924.aa02305@salmon.maths.tcd.ie> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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