From owner-freebsd-hackers Sun Oct 4 10:52:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA01819 for freebsd-hackers-outgoing; Sun, 4 Oct 1998 10:52:54 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from gilgamesch.bik-gmbh.de (gilgamesch.bik-gmbh.de [194.233.237.91]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA01796 for ; Sun, 4 Oct 1998 10:52:44 -0700 (PDT) (envelope-from cracauer@gilgamesch.bik-gmbh.de) Received: (from cracauer@localhost) by gilgamesch.bik-gmbh.de (8.8.8/8.7.3) id TAA11674; Sun, 4 Oct 1998 19:51:40 +0200 (MET DST) Message-ID: <19981004195139.A11665@cons.org> Date: Sun, 4 Oct 1998 19:51:39 +0200 From: Martin Cracauer To: Dan Strick , freebsd-hackers@FreeBSD.ORG Subject: Re: IEEE floating point arithmetic References: <199810031853.LAA04652@math.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.1i In-Reply-To: <199810031853.LAA04652@math.berkeley.edu>; from Dan Strick on Sat, Oct 03, 1998 at 11:53:29AM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In <199810031853.LAA04652@math.berkeley.edu>, Dan Strick wrote: > I am under the impression that the FreeBSD (gnu) C-compiler does > IEEE 754 compatible floating poing arithmetic and that this means > that floating point operations like (1.0 / 0.0) should return a > special value that means +infinity. What I get is a core dump. > Am I supposed to include some special math library or give some > special cc command option? man fpsetmask(3) Please check the freebsd-current mail archives from the beginning of September, it has lots of material about the issue. Subjects: "Floating Point Exceptions, signal handlers & subsequent ops" "Proposed implementation of trapcodes for SIGFPE" Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer BSD User Group Hamburg, Germany http://www.bsdhh.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message