Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/m68k/include get rid of dup fenv.



details:   https://anonhg.NetBSD.org/src/rev/721f029d9141
branches:  trunk
changeset: 812643:721f029d9141
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Dec 25 06:03:06 2015 +0000

description:
get rid of dup fenv.

diffstat:

 sys/arch/m68k/include/ieeefp.h |  21 +++------------------
 1 files changed, 3 insertions(+), 18 deletions(-)

diffs (45 lines):

diff -r 0a8441a04f9b -r 721f029d9141 sys/arch/m68k/include/ieeefp.h
--- a/sys/arch/m68k/include/ieeefp.h    Fri Dec 25 06:02:10 2015 +0000
+++ b/sys/arch/m68k/include/ieeefp.h    Fri Dec 25 06:03:06 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieeefp.h,v 1.7 2009/01/27 19:04:39 martin Exp $        */
+/*     $NetBSD: ieeefp.h,v 1.8 2015/12/25 06:03:06 christos Exp $      */
 
 /* 
  * Written by J.T. Conklin, Apr 6, 1995
@@ -13,21 +13,7 @@
 
 #if defined(_NETBSD_SOURCE) || defined(_ISOC99_SOURCE)
 
-typedef int fenv_t;
-typedef int fexcept_t;
-
-#define        FE_INEXACT      0x01    /* imprecise (loss of precision) */
-#define        FE_DIVBYZERO    0x02    /* divide-by-zero exception */
-#define        FE_UNDERFLOW    0x04    /* overflow exception */
-#define        FE_OVERFLOW     0x08    /* underflow exception */
-#define        FE_INVALID      0x10    /* invalid operation exception */
-
-#define        FE_ALL_EXCEPT   0x1f
-
-#define        FE_TONEAREST    0       /* round to nearest representable number */
-#define        FE_TOWARDZERO   1       /* round to zero (truncate) */
-#define        FE_DOWNWARD     2       /* round toward negative infinity */
-#define        FE_UPWARD       3       /* round toward positive infinity */
+#include <m68k/fenv.h>
 
 #if !defined(_ISOC99_SOURCE)
 
@@ -52,11 +38,10 @@
     FP_PD=2                    /* double-precision (53-bit) */
 } fp_prec;
 
-#endif /* defined(_NETBSD_SOURCE) */
+#endif /* !_ISOC99_SOURCE */
 
 #define        __HAVE_FP_PREC
 
-
 #endif /* _NETBSD_SOURCE || _ISOC99_SOURCE */
 
 #endif /* _M68K_IEEEFP_H_ */



Home | Main Index | Thread Index | Old Index