From owner-freebsd-alpha Fri Dec 21 7:29:30 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 547C137B416 for ; Fri, 21 Dec 2001 07:29:25 -0800 (PST) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id KAA26730; Fri, 21 Dec 2001 10:29:19 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id fBLFSsK22701; Fri, 21 Dec 2001 10:28:54 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15395.21814.558196.880593@grasshopper.cs.duke.edu> Date: Fri, 21 Dec 2001 10:28:54 -0500 (EST) To: Bernd Walter Cc: freebsd-alpha@FreeBSD.ORG Subject: Re: floating point exception masks? In-Reply-To: <20011221151906.GA97006@cicely9.cicely.de> References: <20011221151906.GA97006@cicely9.cicely.de> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org You want #include -- that works on i386 & alpha. BTW, FP_X_DNML isn't defined on alpha. I posted some patches to freebsd-alpha on Tue Nov 27 11:07:15 to get Mozilla to build, but I never got it working -- it kept dying in Javascript. Perhaps your thread fixes will cure this. You might want to pull my patches out of the mailing list archives. Drew Bernd Walter writes: > Mozilla uses them on FreeBSD, but they are not available on alpha. > > Here is a code fragment from > work/mozilla/extensions/transformiix/source/base/Double.cpp: > > #include "primitives.h" > #include > #ifdef WIN32 > #include > #endif > //A trick to handle IEEE floating point exceptions on FreeBSD - E.D. > #ifdef __FreeBSD__ > #include > #endif > #ifndef TX_EXE > #include "prdtoa.h" > #else > #include "stdlib.h" > #include "stdio.h" > #endif > > /* > * Utility class for doubles > */ > > //A trick to handle IEEE floating point exceptions on FreeBSD - E.D. > #ifdef __FreeBSD__ > fp_except_t allmask = FP_X_INV|FP_X_OFL|FP_X_UFL|FP_X_DZ|FP_X_IMP|FP_X_DNML; > fp_except_t oldmask = fpsetmask(~allmask); > #endif > > > I have no clue about floating point miracles. > Are these expected implementations? > > -- > B.Walter COSMO-Project http://www.cosmo-project.de > ticso@cicely.de Usergroup info@cosmo-project.de > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-alpha" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message