Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Move FP_ROP and FP_DIRTYZERO from <math.h> to <vax/math.h> (...
details: https://anonhg.NetBSD.org/src/rev/0223ba36315b
branches: trunk
changeset: 557882:0223ba36315b
user: kleink <kleink%NetBSD.org@localhost>
date: Tue Jan 20 19:52:40 2004 +0000
description:
Move FP_ROP and FP_DIRTYZERO from <math.h> to <vax/math.h> (where they
would have ended up if I hadn't missed the latter file in the commit).
diffstat:
include/math.h | 4 +---
sys/arch/vax/include/math.h | 13 ++++++++++++-
2 files changed, 13 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r 3d2b69dc0cbe -r 0223ba36315b include/math.h
--- a/include/math.h Tue Jan 20 19:41:30 2004 +0000
+++ b/include/math.h Tue Jan 20 19:52:40 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: math.h,v 1.31 2004/01/20 19:26:53 matt Exp $ */
+/* $NetBSD: math.h,v 1.32 2004/01/20 19:52:40 kleink Exp $ */
/*
* ====================================================
@@ -97,8 +97,6 @@
#define FP_ZERO 0x04
/* NetBSD extensions */
#define _FP_LOMD 0x80 /* range for machine-specific classes */
-#define FP_DIRTYZERO 0x80 /* VAX */
-#define FP_ROP 0x81 /* VAX */
#define _FP_HIMD 0xff
#endif /* !_ANSI_SOURCE && ... */
diff -r 3d2b69dc0cbe -r 0223ba36315b sys/arch/vax/include/math.h
--- a/sys/arch/vax/include/math.h Tue Jan 20 19:41:30 2004 +0000
+++ b/sys/arch/vax/include/math.h Tue Jan 20 19:52:40 2004 +0000
@@ -1,3 +1,14 @@
-/* $NetBSD: math.h,v 1.2 2003/10/26 00:02:02 kleink Exp $ */
+/* $NetBSD: math.h,v 1.3 2004/01/20 19:52:40 kleink Exp $ */
#define __INFINITY 1.0E+39F
+
+#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
+ !defined(_XOPEN_SOURCE) || \
+ ((__STDC_VERSION__ - 0) >= 199901L) || \
+ ((_POSIX_C_SOURCE - 0) >= 200112L) || \
+ ((_XOPEN_SOURCE - 0) >= 600) || \
+ defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE)
+/* 7.12#6 number classification macros; machine-specific classes */
+#define FP_DIRTYZERO 0x80
+#define FP_ROP 0x81
+#endif
Home |
Main Index |
Thread Index |
Old Index