Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Mar 2000 22:47:26 +0100
From:      Martin Cracauer <cracauer@cons.org>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, Doug Rabson <dfr@nlsystems.com>, Martin Cracauer <cracauer@FreeBSD.ORG>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/i386/include npx.h
Message-ID:  <20000310224726.B20522@cons.org>
In-Reply-To: <20000310140843.C14279@fw.wintelcom.net>; from bright@wintelcom.net on Fri, Mar 10, 2000 at 02:08:43PM -0800
References:  <200003101756.JAA90710@freefall.freebsd.org> <Pine.BSF.4.21.0003102057080.79394-100000@salmon.nlsystems.com> <20000310133936.B14279@fw.wintelcom.net> <200003102122.QAA18594@khavrinen.lcs.mit.edu> <20000310140843.C14279@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In <20000310140843.C14279@fw.wintelcom.net>, Alfred Perlstein wrote: 
> * Garrett Wollman <wollman@khavrinen.lcs.mit.edu> [000310 13:58] wrote:
> > <<On Fri, 10 Mar 2000 13:39:36 -0800, Alfred Perlstein <bright@wintelcom.net> said:
> > 
> > > Is there any reason for doing this other than so we can emulate
> > > linux's bog^H^H^H nifty ability to divide by zero?
> > 
> > The fact that the IEEE standard says this is the default state.
> 
> I haven't had the time to test this, but integer divide by zero is
> still trapped?  And you're right, using fp on solaris/irix doesn't
> bomb out when doing / 0, but does for integer math.

Integer math is not affected by the FPU mask (Although the exceptions
thown is SIGFPE). You can't mask it, the only thing you can do is to
longjump out of a SIGFPE signal handler.

Yes, out of the major Unix derivates we were the last to default to
trap (Solaris, Linux, NetBSD, OpenBSD...). Again, you can't clearly
claime that IEEE754 is the holy thing since we violate it otherwise
due to C89 restrictions.

Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer/
  Tel.: (private) +4940 5221829 Fax.: (private) +4940 5228536


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000310224726.B20522>