summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2011-04-23 21:54:21 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2011-04-23 21:54:21 +0000
commit7b33168bcc9d1dbc0667a5ee53f370b587f9eedf (patch)
tree8e78b409b48df006d05ffbb0ecdb3931a39b7fa2 /sys/arch
parent71c6c5dd0012b30411572131fca3dc01ae57134b (diff)
Add FE_DENORMAL to the exception list just like the comment above
says; for couple of reasons: - makes it actually work, since the code clears ~FE_ALL_EXCEPT bits. - standard requires that.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/include/fenv.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/amd64/include/fenv.h b/sys/arch/amd64/include/fenv.h
index 9f9af5f52bf..67c5cff7889 100644
--- a/sys/arch/amd64/include/fenv.h
+++ b/sys/arch/amd64/include/fenv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fenv.h,v 1.1 2011/04/21 21:12:56 martynas Exp $ */
+/* $OpenBSD: fenv.h,v 1.2 2011/04/23 21:54:20 martynas Exp $ */
/* $NetBSD: fenv.h,v 1.1 2010/07/31 21:47:54 joerg Exp $ */
/*-
@@ -49,7 +49,8 @@
* exception constants defined above.
*/
#define FE_ALL_EXCEPT \
- (FE_DIVBYZERO | FE_INEXACT | FE_INVALID | FE_OVERFLOW | FE_UNDERFLOW)
+ (FE_DIVBYZERO | FE_INEXACT | FE_INVALID | FE_OVERFLOW | FE_UNDERFLOW | \
+ FE_DENORMAL)
/*
* Each symbol representing the rounding direction, expands to an integer