From owner-cvs-all Sat Mar 11 0:40:52 2000 Delivered-To: cvs-all@freebsd.org Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by hub.freebsd.org (Postfix) with ESMTP id 0D11E37B909; Sat, 11 Mar 2000 00:40:36 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from nlsys.demon.co.uk ([158.152.125.33] helo=herring.nlsystems.com) by anchor-post-30.mail.demon.net with esmtp (Exim 2.12 #1) id 12ThRn-000Bc0-0U; Sat, 11 Mar 2000 08:40:32 +0000 Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id IAA46783; Sat, 11 Mar 2000 08:47:01 GMT (envelope-from dfr@nlsystems.com) Date: Sat, 11 Mar 2000 08:42:42 +0000 (GMT) From: Doug Rabson To: Jeroen Ruigrok van der Werven Cc: Garrett Wollman , Alfred Perlstein , Martin Cracauer , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/i386/include npx.h In-Reply-To: <20000310224053.B4626@lucifer.bart.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 10 Mar 2000, Jeroen Ruigrok van der Werven wrote: > -On [20000310 22:30], Garrett Wollman (wollman@khavrinen.lcs.mit.edu) wrote: > >< 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