diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2011-04-23 21:54:21 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2011-04-23 21:54:21 +0000 |
commit | 7b33168bcc9d1dbc0667a5ee53f370b587f9eedf (patch) | |
tree | 8e78b409b48df006d05ffbb0ecdb3931a39b7fa2 /sys/arch/amd64 | |
parent | 71c6c5dd0012b30411572131fca3dc01ae57134b (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/amd64')
-rw-r--r-- | sys/arch/amd64/include/fenv.h | 5 |
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 |