Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/include remove dup definitions
details: https://anonhg.NetBSD.org/src/rev/e95ff5f67c0a
branches: trunk
changeset: 350608:e95ff5f67c0a
user: christos <christos%NetBSD.org@localhost>
date: Sat Jan 14 16:07:53 2017 +0000
description:
remove dup definitions
diffstat:
sys/arch/sparc/include/ieeefp.h | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
diffs (37 lines):
diff -r f0a2205a287a -r e95ff5f67c0a sys/arch/sparc/include/ieeefp.h
--- a/sys/arch/sparc/include/ieeefp.h Sat Jan 14 15:58:11 2017 +0000
+++ b/sys/arch/sparc/include/ieeefp.h Sat Jan 14 16:07:53 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ieeefp.h,v 1.9 2015/01/03 18:12:12 martin Exp $ */
+/* $NetBSD: ieeefp.h,v 1.10 2017/01/14 16:07:53 christos Exp $ */
/*
* Written by J.T. Conklin, Apr 6, 1995
@@ -9,15 +9,9 @@
#define _SPARC_IEEEFP_H_
#include <sys/featuretest.h>
-
-#if defined(_NETBSD_SOURCE) || defined(_ISOC99_SOURCE)
+#include <machine/fenv.h>
-#define FE_TONEAREST 0 /* round to nearest representable number */
-#define FE_TOWARDZERO 1 /* round to zero (truncate) */
-#define FE_UPWARD 2 /* round toward positive infinity */
-#define FE_DOWNWARD 3 /* round toward negative infinity */
-
-#if !defined(_ISOC99_SOURCE)
+#if defined(_NETBSD_SOURCE) && !defined(_ISOC99_SOURCE)
typedef unsigned int fp_except;
#define FP_X_IMP 0x01 /* imprecise (loss of precision) */
@@ -33,8 +27,6 @@
FP_RM=3 /* round toward negative infinity */
} fp_rnd;
-#endif /* !_ISOC99_SOURCE */
-
-#endif /* _NETBSD_SOURCE || _ISOC99_SOURCE */
+#endif /* _NETBSD_SOURCE || !_ISOC99_SOURCE */
#endif /* _SPARC_IEEEFP_H_ */
Home |
Main Index |
Thread Index |
Old Index