Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/include remove dup definitions from fenv.h
details: https://anonhg.NetBSD.org/src/rev/05e0762e9c59
branches: trunk
changeset: 342436:05e0762e9c59
user: christos <christos%NetBSD.org@localhost>
date: Tue Dec 22 05:28:46 2015 +0000
description:
remove dup definitions from fenv.h
diffstat:
sys/arch/powerpc/include/ieeefp.h | 20 +++-----------------
1 files changed, 3 insertions(+), 17 deletions(-)
diffs (35 lines):
diff -r 7399b35787af -r 05e0762e9c59 sys/arch/powerpc/include/ieeefp.h
--- a/sys/arch/powerpc/include/ieeefp.h Tue Dec 22 03:36:01 2015 +0000
+++ b/sys/arch/powerpc/include/ieeefp.h Tue Dec 22 05:28:46 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ieeefp.h,v 1.3 2008/08/05 16:47:42 matt Exp $ */
+/* $NetBSD: ieeefp.h,v 1.4 2015/12/22 05:28:46 christos Exp $ */
/*
* Written by J.T. Conklin, Apr 6, 1995
@@ -10,23 +10,9 @@
#include <sys/featuretest.h>
-#if defined(_NETBSD_SOURCE) || defined(_ISOC99_SOURCE)
-
-typedef int fenv_t;
-typedef int fexcept_t;
+#include <powerpc/fenv.h>
-#define FE_INEXACT 0x01 /* imprecise (loss of precision) */
-#define FE_DIVBYZERO 0x02 /* divide-by-zero exception */
-#define FE_OVERFLOW 0x04 /* underflow exception */
-#define FE_UNDERFLOW 0x08 /* overflow 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_UPWARD 2 /* round toward positive infinity */
-#define FE_DOWNWARD 3 /* round toward negative infinity */
+#if defined(_NETBSD_SOURCE) || defined(_ISOC99_SOURCE)
#if !defined(_ISOC99_SOURCE)
Home |
Main Index |
Thread Index |
Old Index