Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Dec 2001 10:28:54 -0500 (EST)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        Bernd Walter <ticso@cicely9.cicely.de>
Cc:        freebsd-alpha@FreeBSD.ORG
Subject:   Re: floating point exception masks?
Message-ID:  <15395.21814.558196.880593@grasshopper.cs.duke.edu>
In-Reply-To: <20011221151906.GA97006@cicely9.cicely.de>
References:  <20011221151906.GA97006@cicely9.cicely.de>

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

You want #include <ieeefp.h> -- 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  <math.h>
 > #ifdef WIN32
 > #include <float.h>
 > #endif
 > //A trick to handle IEEE floating point exceptions on FreeBSD - E.D.
 > #ifdef __FreeBSD__
 > #include <floatingpoint.h>
 > #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




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