Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Mar 2000 08:42:42 +0000 (GMT)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Jeroen Ruigrok van der Werven <asmodai@bart.nl>
Cc:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, Alfred Perlstein <bright@wintelcom.net>, 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:  <Pine.BSF.4.21.0003110840550.79394-100000@salmon.nlsystems.com>
In-Reply-To: <20000310224053.B4626@lucifer.bart.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 10 Mar 2000, Jeroen Ruigrok van der Werven wrote:

> -On [20000310 22:30], Garrett Wollman (wollman@khavrinen.lcs.mit.edu) 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.
> 
> My, does the IEEE encourage bad coding practices then.  If I understood
> the commit correctly.
> 
> Just for the less kernelsavvy types under us,
> 
> this commit make sures that my app won't segfault due to a division by
> zero, right?

This means that you won't get a SIGFPE for floating point overflow
(including divide by zero) among other things.

This is useful for certain kinds of floating point software, including 3D
graphics, where the cost of detecting whether an operation will overflow
is prohibitive.

--
Doug Rabson				Mail:  dfr@nlsystems.com
Nonlinear Systems Ltd.			Phone: +44 181 442 9037




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?Pine.BSF.4.21.0003110840550.79394-100000>