Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/m68k/include make this compile for c++
details: https://anonhg.NetBSD.org/src/rev/a1c387415423
branches: trunk
changeset: 342506:a1c387415423
user: christos <christos%NetBSD.org@localhost>
date: Fri Dec 25 16:19:38 2015 +0000
description:
make this compile for c++
diffstat:
sys/arch/m68k/include/fenv.h | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r c3d8310a8694 -r a1c387415423 sys/arch/m68k/include/fenv.h
--- a/sys/arch/m68k/include/fenv.h Fri Dec 25 12:16:03 2015 +0000
+++ b/sys/arch/m68k/include/fenv.h Fri Dec 25 16:19:38 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fenv.h,v 1.1 2015/12/24 14:12:39 christos Exp $ */
+/* $NetBSD: fenv.h,v 1.2 2015/12/25 16:19:38 christos Exp $ */
/*-
* Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -104,6 +104,8 @@
#define __fsetenv(__envp) \
__asm__ __volatile__ ("fmovem%.l %0,%/fpcr/%/fpsr/%/fpiar" : : "m" (__envp))
+__BEGIN_DECLS
+
__fenv_static inline int
feclearexcept(int __excepts)
{
@@ -218,9 +220,9 @@
__fgetenv(__envp);
__fpsr = __envp->fpsr & ~FE_ALL_EXCEPT;
- __fset_fpsr(__fpsr); /* clear all */
+ __set_fpsr(__fpsr); /* clear all */
__fpcr = __envp->fpcr & ~(FE_ALL_EXCEPT << 6);
- __fset_fpcr(__fpcr); /* set non/stop */
+ __set_fpcr(__fpcr); /* set non/stop */
return 0;
}
Home |
Main Index |
Thread Index |
Old Index