Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Aug 1997 16:10:21 +0100 (BST)
From:      geoffb@demon.net
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   i386/4226: Floating point exception for double precision divion by zero
Message-ID:  <199708041510.QAA16659@geoffb.noc.demon.net>
Resent-Message-ID: <199708041520.IAA05458@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         4226
>Category:       i386
>Synopsis:       Floating point exception for double precision divion by zero
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug  4 08:20:01 PDT 1997
>Last-Modified:
>Originator:     Geoff Buckingham
>Organization:
Demon Internet
>Release:        FreeBSD 2.2.2-RELEASE i386
>Environment:

	

>Description:

Double precision division by zero produces a floating point exception.
(Yes I know things shouldn't do this, but some do as other OSs return Max
Int if you do this.) I assume this occurs because division is done as a 
a floating point operation?

>How-To-Repeat:

See above.

>Fix:
	
Either check for zero values, or don't use FP
>Audit-Trail:
>Unformatted:



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