Module Name:    src
Committed By:   christos
Date:           Fri Dec 25 06:03:06 UTC 2015

Modified Files:
        src/sys/arch/m68k/include: ieeefp.h

Log Message:
get rid of dup fenv.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/m68k/include/ieeefp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/m68k/include/ieeefp.h
diff -u src/sys/arch/m68k/include/ieeefp.h:1.7 src/sys/arch/m68k/include/ieeefp.h:1.8
--- src/sys/arch/m68k/include/ieeefp.h:1.7	Tue Jan 27 14:04:39 2009
+++ src/sys/arch/m68k/include/ieeefp.h	Fri Dec 25 01:03:06 2015
@@ -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 @@ typedef enum {
     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_ */

Reply via email to