summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormartynas <martynas@openbsd.org>2011-04-23 21:54:20 +0000
committermartynas <martynas@openbsd.org>2011-04-23 21:54:20 +0000
commit0e89a346550541132981a2428c83b22203c6826a (patch)
tree2fbbbdc39dee066866b1147561618d4e0ef927a0
parentMerge the same fix for hppa64; reminded by miod@: (diff)
downloadwireguard-openbsd-0e89a346550541132981a2428c83b22203c6826a.tar.xz
wireguard-openbsd-0e89a346550541132981a2428c83b22203c6826a.zip
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.
-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