Date: Wed, 5 May 2004 22:01:38 -0700 From: Marcel Moolenaar <marcel@xcllnt.net> To: David Schultz <das@freebsd.org> Cc: alpha@freebsd.org Subject: Re: Problems with floating point exception flags Message-ID: <20040506050138.GA24130@dhcp01.pn.xcllnt.net> In-Reply-To: <20040506045936.GA24034@dhcp01.pn.xcllnt.net> References: <20040428064116.GA7870@VARK.homeunix.com> <20040504133904.GA22084@VARK.homeunix.com> <20040506020629.GA23555@dhcp01.pn.xcllnt.net> <20040506043137.GA10641@VARK.homeunix.com> <20040506045936.GA24034@dhcp01.pn.xcllnt.net>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Wed, May 05, 2004 at 09:59:36PM -0700, Marcel Moolenaar wrote:
>
> Attached a fix for fenv.h.
Now attached...
--
Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net
[-- Attachment #2 --]
--- fenv.h~ Wed May 5 21:52:11 2004
+++ fenv.h Wed May 5 21:54:56 2004
@@ -101,15 +101,6 @@
}
static __inline int
-feraiseexcept(int __excepts)
-{
-/* XXX */
- fexcept_t __ex = __excepts;
- fesetexceptflag(&__ex, __excepts);
- return (0);
-}
-
-static __inline int
fesetexceptflag(const fexcept_t *__flagp, int __excepts)
{
union __fpcr __r;
@@ -123,6 +114,15 @@
__r.__bits |= __xflag & __xexcepts;
__mt_fpcr(__r.__d);
__excb();
+ return (0);
+}
+
+static __inline int
+feraiseexcept(int __excepts)
+{
+/* XXX */
+ fexcept_t __ex = __excepts;
+ fesetexceptflag(&__ex, __excepts);
return (0);
}
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040506050138.GA24130>
