Module Name:    src
Committed By:   christos
Date:           Fri Dec 25 16:19:38 UTC 2015

Modified Files:
        src/sys/arch/m68k/include: fenv.h

Log Message:
make this compile for c++


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/m68k/include/fenv.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/m68k/include/fenv.h
diff -u src/sys/arch/m68k/include/fenv.h:1.1 src/sys/arch/m68k/include/fenv.h:1.2
--- src/sys/arch/m68k/include/fenv.h:1.1	Thu Dec 24 09:12:39 2015
+++ src/sys/arch/m68k/include/fenv.h	Fri Dec 25 11:19:38 2015
@@ -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 @@ typedef struct {
 #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 @@ feholdexcept(fenv_t *__envp)
 
 	__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;
 }

Reply via email to