Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/include restore the constants to the old valu...
details: https://anonhg.NetBSD.org/src/rev/885fcf9cbfb6
branches: trunk
changeset: 817535:885fcf9cbfb6
user: christos <christos%NetBSD.org@localhost>
date: Wed Aug 24 06:22:20 2016 +0000
description:
restore the constants to the old values to match what the kernel expects
internally.
diffstat:
sys/arch/alpha/include/fenv.h | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (37 lines):
diff -r c4a98b2ae6c9 -r 885fcf9cbfb6 sys/arch/alpha/include/fenv.h
--- a/sys/arch/alpha/include/fenv.h Tue Aug 23 21:07:40 2016 +0000
+++ b/sys/arch/alpha/include/fenv.h Wed Aug 24 06:22:20 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fenv.h,v 1.1 2016/08/23 09:59:26 christos Exp $ */
+/* $NetBSD: fenv.h,v 1.2 2016/08/24 06:22:20 christos Exp $ */
/*-
* Copyright (c) 2004-2005 David Schultz <das%FreeBSD.ORG@localhost>
@@ -37,12 +37,12 @@
typedef __uint16_t fexcept_t;
/* Exception flags */
-#define FE_INVALID 0x02
-#define FE_DIVBYZERO 0x04
-#define FE_OVERFLOW 0x08
-#define FE_UNDERFLOW 0x10
-#define FE_INEXACT 0x20
-#define FE_INTOVF 0x40 /* not maskable */
+#define FE_INVALID 0x01
+#define FE_DIVBYZERO 0x02
+#define FE_OVERFLOW 0x04
+#define FE_UNDERFLOW 0x08
+#define FE_INEXACT 0x10
+#define FE_INTOVF 0x20 /* not maskable */
#define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_INEXACT | FE_INTOVF | \
FE_INVALID | FE_OVERFLOW | FE_UNDERFLOW)
@@ -55,7 +55,7 @@
FE_UPWARD | FE_TOWARDZERO)
#define _ROUND_SHIFT 58
-#define _FPUSW_SHIFT 51
+#define _FPUSW_SHIFT 52
#define __excb() __asm __volatile("excb")
#define __mf_fpcr(__cw) __asm __volatile("mf_fpcr %0" : "=f" (*(__cw)))
Home |
Main Index |
Thread Index |
Old Index