Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch cargo cult the x86 changes.
details: https://anonhg.NetBSD.org/src/rev/f9264b5779bd
branches: trunk
changeset: 757746:f9264b5779bd
user: christos <christos%NetBSD.org@localhost>
date: Mon Sep 20 16:13:35 2010 +0000
description:
cargo cult the x86 changes.
diffstat:
sys/arch/hppa/include/ieee.h | 15 +++++++++++++--
sys/arch/m68k/include/ieee.h | 13 +++++++++++--
sys/arch/sparc/include/ieee.h | 14 ++++++++++++--
3 files changed, 36 insertions(+), 6 deletions(-)
diffs (99 lines):
diff -r d00e4b54baf5 -r f9264b5779bd sys/arch/hppa/include/ieee.h
--- a/sys/arch/hppa/include/ieee.h Mon Sep 20 15:38:48 2010 +0000
+++ b/sys/arch/hppa/include/ieee.h Mon Sep 20 16:13:35 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ieee.h,v 1.10 2007/02/04 00:39:19 christos Exp $ */
+/* $NetBSD: ieee.h,v 1.11 2010/09/20 16:13:35 christos Exp $ */
/* $OpenBSD: ieee.h,v 1.1 1999/04/20 19:44:04 mickey Exp $ */
@@ -83,7 +83,9 @@
* A NaN is a `signalling NaN' if its QUIETNAN bit is set in its
* high fraction; if the bit is clear, it is a `quiet NaN'.
*/
-#define EXT_EXP_INFNAN 32767
+#define EXT_EXP_INFNAN 0x7fff
+#define EXT_EXP_INF 0x7fff
+#define EXT_EXP_NAN 0x7fff
#if 0
#define SNG_QUIETNAN (1 << 22)
@@ -103,4 +105,13 @@
long double extu_ld;
struct ieee_ext extu_ext;
};
+
+#define extu_exp extu_ext.ext_exp
+#define extu_sign extu_ext.ext_sign
+#define extu_fracl extu_ext.ext_fracl
+#define extu_frach extu_ext.ext_frach
+
+#define LDBL_NBIT 0x80000000
+#define mask_nbit_l(u) ((u).extu_frach &= ~LDBL_NBIT)
+
#endif /* _LP64 */
diff -r d00e4b54baf5 -r f9264b5779bd sys/arch/m68k/include/ieee.h
--- a/sys/arch/m68k/include/ieee.h Mon Sep 20 15:38:48 2010 +0000
+++ b/sys/arch/m68k/include/ieee.h Mon Sep 20 16:13:35 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ieee.h,v 1.15 2007/02/22 17:11:15 mhitch Exp $ */
+/* $NetBSD: ieee.h,v 1.16 2010/09/20 16:13:35 christos Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -80,7 +80,9 @@
* A NaN is a `signalling NaN' if its QUIETNAN bit is clear in its
* high fraction; if the bit is set, it is a `quiet NaN'.
*/
-#define EXT_EXP_INFNAN 32767
+#define EXT_EXP_INFNAN 0x7fff
+#define EXT_EXP_INF 0x7fff
+#define EXT_EXP_NAN 0x7fff
#if 0
#define SNG_QUIETNAN (1 << 22)
@@ -101,4 +103,11 @@
struct ieee_ext extu_ext;
};
+#define extu_exp extu_ext.ext_exp
+#define extu_sign extu_ext.ext_sign
+#define extu_fracl extu_ext.ext_fracl
+#define extu_frach extu_ext.ext_frach
+
+#define LDBL_NBIT 0x80000000
+#define mask_nbit_l(u) ((u).extu_frach &= ~LDBL_NBIT)
#endif /* !__mc68010__ || _KERNEL */
diff -r d00e4b54baf5 -r f9264b5779bd sys/arch/sparc/include/ieee.h
--- a/sys/arch/sparc/include/ieee.h Mon Sep 20 15:38:48 2010 +0000
+++ b/sys/arch/sparc/include/ieee.h Mon Sep 20 16:13:35 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ieee.h,v 1.12 2007/02/04 00:39:43 christos Exp $ */
+/* $NetBSD: ieee.h,v 1.13 2010/09/20 16:13:35 christos Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -88,7 +88,9 @@
* A NaN is a `signalling NaN' if its QUIETNAN bit is clear in its
* high fraction; if the bit is set, it is a `quiet NaN'.
*/
-#define EXT_EXP_INFNAN 32767
+#define EXT_EXP_INFNAN 0x7fff
+#define EXT_EXP_INF 0x7fff
+#define EXT_EXP_NAN 0x7fff
#if 0
#define SNG_QUIETNAN (1 << 22)
@@ -108,4 +110,12 @@
long double extu_ld;
struct ieee_ext extu_ext;
};
+
+#define extu_exp extu_ext.ext_exp
+#define extu_sign extu_ext.ext_sign
+#define extu_fracl extu_ext.ext_fracl
+#define extu_frach extu_ext.ext_frach
+
+#define LDBL_NBIT 0x80000000
+#define mask_nbit_l(u) ((u).extu_frach &= ~LDBL_NBIT)
#endif /* __arch64__ || _KERNEL */
Home |
Main Index |
Thread Index |
Old Index