Problems with floating point exception flags
Marcel Moolenaar
marcel at xcllnt.net
Wed May 5 22:01:39 PDT 2004
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 at xcllnt.net
-------------- next part --------------
--- 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);
}
More information about the freebsd-alpha
mailing list