Module Name:    src
Committed By:   christos
Date:           Mon Dec 21 17:02:34 UTC 2015

Modified Files:
        src/sys/arch/algor/include: Makefile
        src/sys/arch/amigappc/include: Makefile
        src/sys/arch/arc/include: Makefile
        src/sys/arch/bebox/include: Makefile
        src/sys/arch/cobalt/include: Makefile
        src/sys/arch/emips/include: Makefile
        src/sys/arch/evbmips/include: Makefile
        src/sys/arch/evbppc/include: Makefile
        src/sys/arch/ews4800mips/include: Makefile
        src/sys/arch/hpcmips/include: Makefile
        src/sys/arch/ibmnws/include: Makefile
        src/sys/arch/macppc/include: Makefile
        src/sys/arch/mips/include: Makefile
        src/sys/arch/mipsco/include: Makefile
        src/sys/arch/mvmeppc/include: Makefile
        src/sys/arch/newsmips/include: Makefile
        src/sys/arch/ofppc/include: Makefile
        src/sys/arch/playstation2/include: Makefile
        src/sys/arch/pmax/include: Makefile
        src/sys/arch/powerpc/include: Makefile
        src/sys/arch/prep/include: Makefile
        src/sys/arch/rs6000/include: Makefile
        src/sys/arch/sandpoint/include: Makefile
        src/sys/arch/sbmips/include: Makefile
        src/sys/arch/sgimips/include: Makefile
Added Files:
        src/sys/arch/algor/include: fenv.h
        src/sys/arch/arc/include: fenv.h
        src/sys/arch/cobalt/include: fenv.h
        src/sys/arch/emips/include: fenv.h
        src/sys/arch/evbmips/include: fenv.h
        src/sys/arch/ews4800mips/include: fenv.h
        src/sys/arch/hpcmips/include: fenv.h
        src/sys/arch/mips/include: fenv.h
        src/sys/arch/mipsco/include: fenv.h
        src/sys/arch/newsmips/include: fenv.h
        src/sys/arch/playstation2/include: fenv.h
        src/sys/arch/pmax/include: fenv.h
        src/sys/arch/sbmips/include: fenv.h
        src/sys/arch/sgimips/include: fenv.h

Log Message:
Add mips fenv.h (From FreeBSD)


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/algor/include/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/arch/algor/include/fenv.h
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/amigappc/include/Makefile
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/arc/include/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/arch/arc/include/fenv.h
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/bebox/include/Makefile
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/cobalt/include/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/arch/cobalt/include/fenv.h
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/emips/include/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/arch/emips/include/fenv.h
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/evbmips/include/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/arch/evbmips/include/fenv.h
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/evbppc/include/Makefile
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/ews4800mips/include/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/arch/ews4800mips/include/fenv.h
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/hpcmips/include/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/arch/hpcmips/include/fenv.h
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/ibmnws/include/Makefile
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/macppc/include/Makefile
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/mips/include/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/arch/mips/include/fenv.h
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/mipsco/include/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/arch/mipsco/include/fenv.h
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/mvmeppc/include/Makefile
cvs rdiff -u -r1.36 -r1.37 src/sys/arch/newsmips/include/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/arch/newsmips/include/fenv.h
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/ofppc/include/Makefile
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/playstation2/include/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/arch/playstation2/include/fenv.h
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/pmax/include/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/arch/pmax/include/fenv.h
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/powerpc/include/Makefile
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/prep/include/Makefile
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/rs6000/include/Makefile
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/sandpoint/include/Makefile
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/sbmips/include/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/arch/sbmips/include/fenv.h
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/sgimips/include/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/arch/sgimips/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/algor/include/Makefile
diff -u src/sys/arch/algor/include/Makefile:1.14 src/sys/arch/algor/include/Makefile:1.15
--- src/sys/arch/algor/include/Makefile:1.14	Sun Jul 17 16:54:35 2011
+++ src/sys/arch/algor/include/Makefile	Mon Dec 21 12:02:32 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.14 2011/07/17 20:54:35 joerg Exp $
+#	$NetBSD: Makefile,v 1.15 2015/12/21 17:02:32 christos Exp $
 
 INCSDIR=/usr/include/algor
 
@@ -7,7 +7,7 @@ INCS=	ansi.h asm.h autoconf.h \
 	cdefs.h cpu.h \
 	disklabel.h \
 	ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
-	float.h \
+	fenv.h float.h \
 	ieee.h ieeefp.h \
 	int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
 	intr.h \

Index: src/sys/arch/amigappc/include/Makefile
diff -u src/sys/arch/amigappc/include/Makefile:1.25 src/sys/arch/amigappc/include/Makefile:1.26
--- src/sys/arch/amigappc/include/Makefile:1.25	Wed Jul 23 14:19:43 2014
+++ src/sys/arch/amigappc/include/Makefile	Mon Dec 21 12:02:32 2015
@@ -1,8 +1,9 @@
-#	$NetBSD: Makefile,v 1.25 2014/07/23 18:19:43 alnsn Exp $
+#	$NetBSD: Makefile,v 1.26 2015/12/21 17:02:32 christos Exp $
 
 INCSDIR= /usr/include/amigappc
 
 INCS=	disklabel.h \
+	fenv.h \
 	intr.h \
 	sljit_machdep.h \
 	vmparam.h

Index: src/sys/arch/arc/include/Makefile
diff -u src/sys/arch/arc/include/Makefile:1.31 src/sys/arch/arc/include/Makefile:1.32
--- src/sys/arch/arc/include/Makefile:1.31	Sun Jul 17 16:54:37 2011
+++ src/sys/arch/arc/include/Makefile	Mon Dec 21 12:02:32 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.31 2011/07/17 20:54:37 joerg Exp $
+#	$NetBSD: Makefile,v 1.32 2015/12/21 17:02:32 christos Exp $
 
 INCSDIR= /usr/include/arc
 
@@ -9,7 +9,7 @@ INCS=	ansi.h asm.h \
 	cdefs.h cpu.h \
 	disklabel.h \
 	ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
-	float.h \
+	fenv.h float.h \
 	ieee.h ieeefp.h \
 	int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
 	kcore.h kdbparam.h \

Index: src/sys/arch/bebox/include/Makefile
diff -u src/sys/arch/bebox/include/Makefile:1.25 src/sys/arch/bebox/include/Makefile:1.26
--- src/sys/arch/bebox/include/Makefile:1.25	Wed Jul 23 14:19:43 2014
+++ src/sys/arch/bebox/include/Makefile	Mon Dec 21 12:02:32 2015
@@ -1,9 +1,10 @@
-#	$NetBSD: Makefile,v 1.25 2014/07/23 18:19:43 alnsn Exp $
+#	$NetBSD: Makefile,v 1.26 2015/12/21 17:02:32 christos Exp $
 
 INCSDIR= /usr/include/bebox
 
 INCS=   bootinfo.h \
 	disklabel.h \
+	fenv.h \
 	intr.h \
 	sljit_machdep.h \
 	spkr.h \

Index: src/sys/arch/cobalt/include/Makefile
diff -u src/sys/arch/cobalt/include/Makefile:1.22 src/sys/arch/cobalt/include/Makefile:1.23
--- src/sys/arch/cobalt/include/Makefile:1.22	Wed Jul 23 14:19:43 2014
+++ src/sys/arch/cobalt/include/Makefile	Mon Dec 21 12:02:32 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.22 2014/07/23 18:19:43 alnsn Exp $
+#	$NetBSD: Makefile,v 1.23 2015/12/21 17:02:32 christos Exp $
 
 INCSDIR= /usr/include/cobalt
 
@@ -7,7 +7,7 @@ INCS=	ansi.h asm.h autoconf.h \
 	cdefs.h cpu.h \
 	disklabel.h \
 	ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
-	float.h \
+	fenv.h float.h \
 	ieee.h ieeefp.h \
 	int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
 	intr.h \

Index: src/sys/arch/emips/include/Makefile
diff -u src/sys/arch/emips/include/Makefile:1.4 src/sys/arch/emips/include/Makefile:1.5
--- src/sys/arch/emips/include/Makefile:1.4	Sat Jul 19 10:35:10 2014
+++ src/sys/arch/emips/include/Makefile	Mon Dec 21 12:02:32 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.4 2014/07/19 14:35:10 alnsn Exp $
+#	$NetBSD: Makefile,v 1.5 2015/12/21 17:02:32 christos Exp $
 
 INCSDIR= /usr/include/emips
 
@@ -7,7 +7,7 @@ INCS=	ansi.h asm.h autoconf.h \
 	cdefs.h cpu.h \
 	disklabel.h \
 	ecoff_machdep.h elf_machdep.h emipsreg.h endian.h endian_machdep.h \
-	float.h \
+	fenv.h float.h \
 	ieee.h ieeefp.h \
 	int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
 	intr.h \

Index: src/sys/arch/evbmips/include/Makefile
diff -u src/sys/arch/evbmips/include/Makefile:1.16 src/sys/arch/evbmips/include/Makefile:1.17
--- src/sys/arch/evbmips/include/Makefile:1.16	Wed Jul 23 14:19:43 2014
+++ src/sys/arch/evbmips/include/Makefile	Mon Dec 21 12:02:33 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.16 2014/07/23 18:19:43 alnsn Exp $
+#	$NetBSD: Makefile,v 1.17 2015/12/21 17:02:33 christos Exp $
 
 INCSDIR=/usr/include/evbmips
 
@@ -7,7 +7,7 @@ INCS=	ansi.h asm.h \
 	cdefs.h cpu.h \
 	disklabel.h \
 	ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
-	float.h \
+	fenv.h float.h \
 	ieee.h ieeefp.h \
 	int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
 	kcore.h kdbparam.h \

Index: src/sys/arch/evbppc/include/Makefile
diff -u src/sys/arch/evbppc/include/Makefile:1.7 src/sys/arch/evbppc/include/Makefile:1.8
--- src/sys/arch/evbppc/include/Makefile:1.7	Wed Jul 23 14:19:43 2014
+++ src/sys/arch/evbppc/include/Makefile	Mon Dec 21 12:02:33 2015
@@ -1,8 +1,9 @@
-#	$NetBSD: Makefile,v 1.7 2014/07/23 18:19:43 alnsn Exp $
+#	$NetBSD: Makefile,v 1.8 2015/12/21 17:02:33 christos Exp $
 
 INCSDIR= /usr/include/evbppc
 
 INCS=	disklabel.h \
+	fenv.h \
 	intr.h \
 	sljit_machdep.h \
 	vmparam.h 

Index: src/sys/arch/ews4800mips/include/Makefile
diff -u src/sys/arch/ews4800mips/include/Makefile:1.7 src/sys/arch/ews4800mips/include/Makefile:1.8
--- src/sys/arch/ews4800mips/include/Makefile:1.7	Wed Jul 23 14:19:43 2014
+++ src/sys/arch/ews4800mips/include/Makefile	Mon Dec 21 12:02:33 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.7 2014/07/23 18:19:43 alnsn Exp $
+#	$NetBSD: Makefile,v 1.8 2015/12/21 17:02:33 christos Exp $
 
 INCSDIR= /usr/include/ews4800mips
 
@@ -7,7 +7,7 @@ INCS=	ansi.h aout_machdep.h asm.h \
 	cdefs.h cpu.h \
 	disklabel.h \
 	ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
-	float.h \
+	fenv.h float.h \
 	ieee.h ieeefp.h \
 	int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
 	kcore.h kdbparam.h \

Index: src/sys/arch/hpcmips/include/Makefile
diff -u src/sys/arch/hpcmips/include/Makefile:1.24 src/sys/arch/hpcmips/include/Makefile:1.25
--- src/sys/arch/hpcmips/include/Makefile:1.24	Wed Jul 23 14:19:44 2014
+++ src/sys/arch/hpcmips/include/Makefile	Mon Dec 21 12:02:33 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.24 2014/07/23 18:19:44 alnsn Exp $
+#	$NetBSD: Makefile,v 1.25 2015/12/21 17:02:33 christos Exp $
 
 INCSDIR= /usr/include/hpcmips
 
@@ -7,7 +7,7 @@ INCS=	ansi.h apmvar.h asm.h autoconf.h \
 	cdefs.h cpu.h \
 	disklabel.h \
 	ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
-	float.h \
+	fenv.h float.h \
 	ieee.h ieeefp.h \
 	int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
 	intr.h \

Index: src/sys/arch/ibmnws/include/Makefile
diff -u src/sys/arch/ibmnws/include/Makefile:1.6 src/sys/arch/ibmnws/include/Makefile:1.7
--- src/sys/arch/ibmnws/include/Makefile:1.6	Wed Jul 23 14:19:44 2014
+++ src/sys/arch/ibmnws/include/Makefile	Mon Dec 21 12:02:33 2015
@@ -1,8 +1,9 @@
-#	$NetBSD: Makefile,v 1.6 2014/07/23 18:19:44 alnsn Exp $
+#	$NetBSD: Makefile,v 1.7 2015/12/21 17:02:33 christos Exp $
 
 INCSDIR= /usr/include/ibmnws
 
 INCS=   disklabel.h \
+	fenv.h \
 	intr.h \
 	sljit_machdep.h \
 	vmparam.h

Index: src/sys/arch/macppc/include/Makefile
diff -u src/sys/arch/macppc/include/Makefile:1.21 src/sys/arch/macppc/include/Makefile:1.22
--- src/sys/arch/macppc/include/Makefile:1.21	Wed Jul 23 14:19:44 2014
+++ src/sys/arch/macppc/include/Makefile	Mon Dec 21 12:02:33 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.21 2014/07/23 18:19:44 alnsn Exp $
+#	$NetBSD: Makefile,v 1.22 2015/12/21 17:02:33 christos Exp $
 
 INCSDIR= /usr/include/macppc
 
@@ -7,6 +7,7 @@ INCSDIR= /usr/include/macppc
 INCS=	adbsys.h apmvar.h autoconf.h \
 	disklabel.h \
 	grfioctl.h \
+	fenv.h \
 	intr.h \
 	keyboard.h \
 	sljit_machdep.h \

Index: src/sys/arch/mips/include/Makefile
diff -u src/sys/arch/mips/include/Makefile:1.32 src/sys/arch/mips/include/Makefile:1.33
--- src/sys/arch/mips/include/Makefile:1.32	Wed Jul 23 14:19:44 2014
+++ src/sys/arch/mips/include/Makefile	Mon Dec 21 12:02:33 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.32 2014/07/23 18:19:44 alnsn Exp $
+#	$NetBSD: Makefile,v 1.33 2015/12/21 17:02:33 christos Exp $
 
 INCSDIR= /usr/include/mips
 
@@ -6,7 +6,7 @@ INCS=	ansi.h asm.h \
 	bswap.h \
 	cachectl.h cdefs.h cpu.h cpuregs.h \
 	ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
-	float.h \
+	fenv.h float.h \
 	ieee.h ieeefp.h \
 	int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
 	kcore.h kdbparam.h \

Index: src/sys/arch/mipsco/include/Makefile
diff -u src/sys/arch/mipsco/include/Makefile:1.22 src/sys/arch/mipsco/include/Makefile:1.23
--- src/sys/arch/mipsco/include/Makefile:1.22	Sat Jul 19 10:35:10 2014
+++ src/sys/arch/mipsco/include/Makefile	Mon Dec 21 12:02:33 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.22 2014/07/19 14:35:10 alnsn Exp $
+#	$NetBSD: Makefile,v 1.23 2015/12/21 17:02:33 christos Exp $
 
 INCSDIR= /usr/include/mipsco
 
@@ -7,7 +7,7 @@ INCS=	ansi.h asm.h autoconf.h \
 	cdefs.h cpu.h \
 	disklabel.h \
 	ecoff_machdep.h elf.h elf_machdep.h endian.h endian_machdep.h \
-	float.h \
+	fenv.h float.h \
 	ieee.h ieeefp.h \
 	int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
 	intr.h \

Index: src/sys/arch/mvmeppc/include/Makefile
diff -u src/sys/arch/mvmeppc/include/Makefile:1.9 src/sys/arch/mvmeppc/include/Makefile:1.10
--- src/sys/arch/mvmeppc/include/Makefile:1.9	Wed Jul 23 14:19:44 2014
+++ src/sys/arch/mvmeppc/include/Makefile	Mon Dec 21 12:02:33 2015
@@ -1,9 +1,10 @@
-#	$NetBSD: Makefile,v 1.9 2014/07/23 18:19:44 alnsn Exp $
+#	$NetBSD: Makefile,v 1.10 2015/12/21 17:02:33 christos Exp $
 
 INCSDIR= /usr/include/mvmeppc
 
 INCS=   bootinfo.h \
 	disklabel.h \
+	fenv.h \
 	intr.h \
 	sljit_machdep.h \
 	vmparam.h

Index: src/sys/arch/newsmips/include/Makefile
diff -u src/sys/arch/newsmips/include/Makefile:1.36 src/sys/arch/newsmips/include/Makefile:1.37
--- src/sys/arch/newsmips/include/Makefile:1.36	Wed Jul 23 14:19:44 2014
+++ src/sys/arch/newsmips/include/Makefile	Mon Dec 21 12:02:33 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.36 2014/07/23 18:19:44 alnsn Exp $
+#	$NetBSD: Makefile,v 1.37 2015/12/21 17:02:33 christos Exp $
 
 INCSDIR= /usr/include/newsmips
 
@@ -7,7 +7,7 @@ INCS=	adrsmap.h ansi.h asm.h autoconf.h 
 	cdefs.h cpu.h \
 	disklabel.h \
 	ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
-	float.h \
+	fenv.h float.h \
 	ieee.h ieeefp.h \
 	int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
 	intr.h \

Index: src/sys/arch/ofppc/include/Makefile
diff -u src/sys/arch/ofppc/include/Makefile:1.21 src/sys/arch/ofppc/include/Makefile:1.22
--- src/sys/arch/ofppc/include/Makefile:1.21	Wed Jul 23 14:19:44 2014
+++ src/sys/arch/ofppc/include/Makefile	Mon Dec 21 12:02:34 2015
@@ -1,8 +1,9 @@
-#	$NetBSD: Makefile,v 1.21 2014/07/23 18:19:44 alnsn Exp $
+#	$NetBSD: Makefile,v 1.22 2015/12/21 17:02:34 christos Exp $
 
 INCSDIR= /usr/include/ofppc
 
 INCS=	disklabel.h \
+	fenv.h \
 	intr.h \
 	sljit_machdep.h \
 	vmparam.h

Index: src/sys/arch/playstation2/include/Makefile
diff -u src/sys/arch/playstation2/include/Makefile:1.11 src/sys/arch/playstation2/include/Makefile:1.12
--- src/sys/arch/playstation2/include/Makefile:1.11	Mon Mar 31 07:25:49 2014
+++ src/sys/arch/playstation2/include/Makefile	Mon Dec 21 12:02:34 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.11 2014/03/31 11:25:49 martin Exp $
+#	$NetBSD: Makefile,v 1.12 2015/12/21 17:02:34 christos Exp $
 
 INCSDIR= /usr/include/playstation2
 
@@ -7,7 +7,7 @@ INCS=	ansi.h aout_machdep.h asm.h \
 	cdefs.h cpu.h \
 	disklabel.h \
 	ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
-	float.h \
+	fenv.h float.h \
 	ieee.h ieeefp.h \
 	int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
 	intr.h \

Index: src/sys/arch/pmax/include/Makefile
diff -u src/sys/arch/pmax/include/Makefile:1.37 src/sys/arch/pmax/include/Makefile:1.38
--- src/sys/arch/pmax/include/Makefile:1.37	Wed Jul 23 14:19:44 2014
+++ src/sys/arch/pmax/include/Makefile	Mon Dec 21 12:02:34 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.37 2014/07/23 18:19:44 alnsn Exp $
+#	$NetBSD: Makefile,v 1.38 2015/12/21 17:02:34 christos Exp $
 
 INCSDIR= /usr/include/pmax
 
@@ -7,7 +7,7 @@ INCS=	ansi.h asm.h autoconf.h \
 	cdefs.h cpu.h \
 	disklabel.h \
 	ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
-	float.h \
+	fenv.h float.h \
 	ieee.h ieeefp.h \
 	int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
 	intr.h \

Index: src/sys/arch/powerpc/include/Makefile
diff -u src/sys/arch/powerpc/include/Makefile:1.40 src/sys/arch/powerpc/include/Makefile:1.41
--- src/sys/arch/powerpc/include/Makefile:1.40	Wed Jul 23 14:19:45 2014
+++ src/sys/arch/powerpc/include/Makefile	Mon Dec 21 12:02:34 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.40 2014/07/23 18:19:45 alnsn Exp $
+#	$NetBSD: Makefile,v 1.41 2015/12/21 17:02:34 christos Exp $
 
 .if !defined(INCSDIR)
 INCSDIR?= /usr/include/powerpc
@@ -9,7 +9,7 @@ INCS+=	ansi.h aout_machdep.h asm.h \
 	bswap.h \
 	cdefs.h cpu.h \
 	elf_machdep.h endian.h endian_machdep.h \
-	float.h fpu.h frame.h \
+	fenv.h float.h fpu.h frame.h \
 	ieee.h ieeefp.h \
 	int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
 	kcore.h \

Index: src/sys/arch/prep/include/Makefile
diff -u src/sys/arch/prep/include/Makefile:1.21 src/sys/arch/prep/include/Makefile:1.22
--- src/sys/arch/prep/include/Makefile:1.21	Wed Jul 23 14:19:45 2014
+++ src/sys/arch/prep/include/Makefile	Mon Dec 21 12:02:34 2015
@@ -1,9 +1,10 @@
-#	$NetBSD: Makefile,v 1.21 2014/07/23 18:19:45 alnsn Exp $
+#	$NetBSD: Makefile,v 1.22 2015/12/21 17:02:34 christos Exp $
 
 INCSDIR= /usr/include/prep
 
 INCS=   bootinfo.h \
 	disklabel.h \
+	fenv.h \
 	intr.h \
 	nvram.h \
 	sljit_machdep.h \

Index: src/sys/arch/rs6000/include/Makefile
diff -u src/sys/arch/rs6000/include/Makefile:1.3 src/sys/arch/rs6000/include/Makefile:1.4
--- src/sys/arch/rs6000/include/Makefile:1.3	Wed Jul 23 14:19:45 2014
+++ src/sys/arch/rs6000/include/Makefile	Mon Dec 21 12:02:34 2015
@@ -1,9 +1,10 @@
-#	$NetBSD: Makefile,v 1.3 2014/07/23 18:19:45 alnsn Exp $
+#	$NetBSD: Makefile,v 1.4 2015/12/21 17:02:34 christos Exp $
 
 INCSDIR= /usr/include/rs6000
 
 INCS=   bootinfo.h \
 	disklabel.h \
+	fenv.h \
 	intr.h \
 	sljit_machdep.h \
 	vmparam.h

Index: src/sys/arch/sandpoint/include/Makefile
diff -u src/sys/arch/sandpoint/include/Makefile:1.19 src/sys/arch/sandpoint/include/Makefile:1.20
--- src/sys/arch/sandpoint/include/Makefile:1.19	Wed Jul 23 14:19:45 2014
+++ src/sys/arch/sandpoint/include/Makefile	Mon Dec 21 12:02:34 2015
@@ -1,9 +1,10 @@
-#	$NetBSD: Makefile,v 1.19 2014/07/23 18:19:45 alnsn Exp $
+#	$NetBSD: Makefile,v 1.20 2015/12/21 17:02:34 christos Exp $
 
 INCSDIR= /usr/include/sandpoint
 
 INCS=	bootinfo.h \
 	disklabel.h \
+	fenv.h \
 	intr.h \
 	sljit_machdep.h \
 	vmparam.h

Index: src/sys/arch/sbmips/include/Makefile
diff -u src/sys/arch/sbmips/include/Makefile:1.15 src/sys/arch/sbmips/include/Makefile:1.16
--- src/sys/arch/sbmips/include/Makefile:1.15	Wed Jul 23 14:19:45 2014
+++ src/sys/arch/sbmips/include/Makefile	Mon Dec 21 12:02:34 2015
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2014/07/23 18:19:45 alnsn Exp $
+# $NetBSD: Makefile,v 1.16 2015/12/21 17:02:34 christos Exp $
 
 INCSDIR= /usr/include/sbmips
 
@@ -10,7 +10,7 @@ INCS=	ansi.h asm.h \
 	cdefs.h cpu.h \
 	disklabel.h \
 	ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
-	float.h \
+	fenv.h float.h \
 	ieee.h ieeefp.h \
 	int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
 	kcore.h kdbparam.h \

Index: src/sys/arch/sgimips/include/Makefile
diff -u src/sys/arch/sgimips/include/Makefile:1.23 src/sys/arch/sgimips/include/Makefile:1.24
--- src/sys/arch/sgimips/include/Makefile:1.23	Wed Jul 23 14:19:45 2014
+++ src/sys/arch/sgimips/include/Makefile	Mon Dec 21 12:02:34 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.23 2014/07/23 18:19:45 alnsn Exp $
+#	$NetBSD: Makefile,v 1.24 2015/12/21 17:02:34 christos Exp $
 
 INCSDIR= /usr/include/sgimips
 
@@ -7,7 +7,7 @@ INCS=	asm.h ansi.h autoconf.h \
 	cdefs.h cpu.h \
 	disklabel.h \
 	ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
-	float.h \
+	fenv.h float.h \
 	ieee.h ieeefp.h \
 	int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
 	intr.h \

Added files:

Index: src/sys/arch/algor/include/fenv.h
diff -u /dev/null src/sys/arch/algor/include/fenv.h:1.1
--- /dev/null	Mon Dec 21 12:02:35 2015
+++ src/sys/arch/algor/include/fenv.h	Mon Dec 21 12:02:32 2015
@@ -0,0 +1,3 @@
+/*	$NetBSD: fenv.h,v 1.1 2015/12/21 17:02:32 christos Exp $	*/
+
+#include <mips/fenv.h>

Index: src/sys/arch/arc/include/fenv.h
diff -u /dev/null src/sys/arch/arc/include/fenv.h:1.1
--- /dev/null	Mon Dec 21 12:02:35 2015
+++ src/sys/arch/arc/include/fenv.h	Mon Dec 21 12:02:32 2015
@@ -0,0 +1,3 @@
+/*	$NetBSD: fenv.h,v 1.1 2015/12/21 17:02:32 christos Exp $	*/
+
+#include <mips/fenv.h>

Index: src/sys/arch/cobalt/include/fenv.h
diff -u /dev/null src/sys/arch/cobalt/include/fenv.h:1.1
--- /dev/null	Mon Dec 21 12:02:35 2015
+++ src/sys/arch/cobalt/include/fenv.h	Mon Dec 21 12:02:32 2015
@@ -0,0 +1,3 @@
+/*	$NetBSD: fenv.h,v 1.1 2015/12/21 17:02:32 christos Exp $	*/
+
+#include <mips/fenv.h>

Index: src/sys/arch/emips/include/fenv.h
diff -u /dev/null src/sys/arch/emips/include/fenv.h:1.1
--- /dev/null	Mon Dec 21 12:02:35 2015
+++ src/sys/arch/emips/include/fenv.h	Mon Dec 21 12:02:32 2015
@@ -0,0 +1,3 @@
+/*	$NetBSD: fenv.h,v 1.1 2015/12/21 17:02:32 christos Exp $	*/
+
+#include <mips/fenv.h>

Index: src/sys/arch/evbmips/include/fenv.h
diff -u /dev/null src/sys/arch/evbmips/include/fenv.h:1.1
--- /dev/null	Mon Dec 21 12:02:35 2015
+++ src/sys/arch/evbmips/include/fenv.h	Mon Dec 21 12:02:33 2015
@@ -0,0 +1,3 @@
+/*	$NetBSD: fenv.h,v 1.1 2015/12/21 17:02:33 christos Exp $	*/
+
+#include <mips/fenv.h>

Index: src/sys/arch/ews4800mips/include/fenv.h
diff -u /dev/null src/sys/arch/ews4800mips/include/fenv.h:1.1
--- /dev/null	Mon Dec 21 12:02:35 2015
+++ src/sys/arch/ews4800mips/include/fenv.h	Mon Dec 21 12:02:33 2015
@@ -0,0 +1,3 @@
+/*	$NetBSD: fenv.h,v 1.1 2015/12/21 17:02:33 christos Exp $	*/
+
+#include <mips/fenv.h>

Index: src/sys/arch/hpcmips/include/fenv.h
diff -u /dev/null src/sys/arch/hpcmips/include/fenv.h:1.1
--- /dev/null	Mon Dec 21 12:02:35 2015
+++ src/sys/arch/hpcmips/include/fenv.h	Mon Dec 21 12:02:33 2015
@@ -0,0 +1,3 @@
+/*	$NetBSD: fenv.h,v 1.1 2015/12/21 17:02:33 christos Exp $	*/
+
+#include <mips/fenv.h>

Index: src/sys/arch/mips/include/fenv.h
diff -u /dev/null src/sys/arch/mips/include/fenv.h:1.1
--- /dev/null	Mon Dec 21 12:02:35 2015
+++ src/sys/arch/mips/include/fenv.h	Mon Dec 21 12:02:33 2015
@@ -0,0 +1,225 @@
+/*	$NetBSD: fenv.h,v 1.1 2015/12/21 17:02:33 christos Exp $	*/
+
+/*-
+ * Copyright (c) 2004-2005 David Schultz <d...@freebsd.org>
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * $FreeBSD: head/lib/msun/mips/fenv.h 226218 2011-10-10 15:43:09Z das $
+ */
+
+#ifndef	_MIPS_FENV_H_
+#define	_MIPS_FENV_H_
+
+#include <sys/stdint.h>
+
+#ifndef	__fenv_static
+#define	__fenv_static	static
+#endif
+
+typedef	uint32_t	fenv_t;
+typedef	uint32_t	fexcept_t;
+
+/* Exception flags */
+#define	FE_INVALID	0x0001
+#define	FE_DIVBYZERO	0x0002
+#define	FE_OVERFLOW	0x0004
+#define	FE_UNDERFLOW	0x0008
+#define	FE_INEXACT	0x0010
+#define	FE_ALL_EXCEPT	(FE_DIVBYZERO | FE_INEXACT | \
+			 FE_INVALID | FE_OVERFLOW | FE_UNDERFLOW)
+
+/* Rounding modes */
+#define	FE_TONEAREST	0x0000
+#define	FE_TOWARDZERO	0x0001
+#define	FE_UPWARD	0x0002
+#define	FE_DOWNWARD	0x0003
+#define	_ROUND_MASK	(FE_TONEAREST | FE_DOWNWARD | \
+			 FE_UPWARD | FE_TOWARDZERO)
+__BEGIN_DECLS
+
+/* Default floating-point environment */
+extern const fenv_t	__fe_dfl_env;
+#define	FE_DFL_ENV	(&__fe_dfl_env)
+
+/* We need to be able to map status flag positions to mask flag positions */
+#define _FPUSW_SHIFT	16
+#define	_ENABLE_MASK	(FE_ALL_EXCEPT << _FPUSW_SHIFT)
+
+#ifdef	ARM_HARD_FLOAT
+#define	__rfs(__fpsr)	__asm __volatile("rfs %0" : "=r" (*(__fpsr)))
+#define	__wfs(__fpsr)	__asm __volatile("wfs %0" : : "r" (__fpsr))
+#else
+#define __rfs(__fpsr)
+#define __wfs(__fpsr)
+#endif
+
+__fenv_static inline int
+feclearexcept(int __excepts)
+{
+	fexcept_t __fpsr;
+
+	__rfs(&__fpsr);
+	__fpsr &= ~__excepts;
+	__wfs(__fpsr);
+	return (0);
+}
+
+__fenv_static inline int
+fegetexceptflag(fexcept_t *__flagp, int __excepts)
+{
+	fexcept_t __fpsr;
+
+	__rfs(&__fpsr);
+	*__flagp = __fpsr & __excepts;
+	return (0);
+}
+
+__fenv_static inline int
+fesetexceptflag(const fexcept_t *__flagp, int __excepts)
+{
+	fexcept_t __fpsr;
+
+	__rfs(&__fpsr);
+	__fpsr &= ~__excepts;
+	__fpsr |= *__flagp & __excepts;
+	__wfs(__fpsr);
+	return (0);
+}
+
+__fenv_static inline int
+feraiseexcept(int __excepts)
+{
+	fexcept_t __ex = __excepts;
+
+	fesetexceptflag(&__ex, __excepts);	/* XXX */
+	return (0);
+}
+
+__fenv_static inline int
+fetestexcept(int __excepts)
+{
+	fexcept_t __fpsr;
+
+	__rfs(&__fpsr);
+	return (__fpsr & __excepts);
+}
+
+__fenv_static inline int
+fegetround(void)
+{
+
+	/*
+	 * Apparently, the rounding mode is specified as part of the
+	 * instruction format on ARM, so the dynamic rounding mode is
+	 * indeterminate.  Some FPUs may differ.
+	 */
+	return (-1);
+}
+
+__fenv_static inline int
+fesetround(int __round)
+{
+
+	return (-1);
+}
+
+__fenv_static inline int
+fegetenv(fenv_t *__envp)
+{
+
+	__rfs(__envp);
+	return (0);
+}
+
+__fenv_static inline int
+feholdexcept(fenv_t *__envp)
+{
+	fenv_t __env;
+
+	__rfs(&__env);
+	*__envp = __env;
+	__env &= ~(FE_ALL_EXCEPT | _ENABLE_MASK);
+	__wfs(__env);
+	return (0);
+}
+
+__fenv_static inline int
+fesetenv(const fenv_t *__envp)
+{
+
+	__wfs(*__envp);
+	return (0);
+}
+
+__fenv_static inline int
+feupdateenv(const fenv_t *__envp)
+{
+	fexcept_t __fpsr;
+
+	__rfs(&__fpsr);
+	__wfs(*__envp);
+	feraiseexcept(__fpsr & FE_ALL_EXCEPT);
+	return (0);
+}
+
+#if defined(_NETBSD_SOURCE) || defined(_GNU_SOURCE)
+
+/* We currently provide no external definitions of the functions below. */
+
+static inline int
+feenableexcept(int __mask)
+{
+	fenv_t __old_fpsr, __new_fpsr;
+
+	__rfs(&__old_fpsr);
+	__new_fpsr = __old_fpsr | (__mask & FE_ALL_EXCEPT) << _FPUSW_SHIFT;
+	__wfs(__new_fpsr);
+	return ((__old_fpsr >> _FPUSW_SHIFT) & FE_ALL_EXCEPT);
+}
+
+static inline int
+fedisableexcept(int __mask)
+{
+	fenv_t __old_fpsr, __new_fpsr;
+
+	__rfs(&__old_fpsr);
+	__new_fpsr = __old_fpsr & ~((__mask & FE_ALL_EXCEPT) << _FPUSW_SHIFT);
+	__wfs(__new_fpsr);
+	return ((__old_fpsr >> _FPUSW_SHIFT) & FE_ALL_EXCEPT);
+}
+
+static inline int
+fegetexcept(void)
+{
+	fenv_t __fpsr;
+
+	__rfs(&__fpsr);
+	return ((__fpsr & _ENABLE_MASK) >> _FPUSW_SHIFT);
+}
+
+#endif /* _NETBSD_SOURCE || _GNU_SOURCE */
+
+__END_DECLS
+
+#endif	/* !_FENV_H_ */

Index: src/sys/arch/mipsco/include/fenv.h
diff -u /dev/null src/sys/arch/mipsco/include/fenv.h:1.1
--- /dev/null	Mon Dec 21 12:02:35 2015
+++ src/sys/arch/mipsco/include/fenv.h	Mon Dec 21 12:02:33 2015
@@ -0,0 +1,3 @@
+/*	$NetBSD: fenv.h,v 1.1 2015/12/21 17:02:33 christos Exp $	*/
+
+#include <mips/fenv.h>

Index: src/sys/arch/newsmips/include/fenv.h
diff -u /dev/null src/sys/arch/newsmips/include/fenv.h:1.1
--- /dev/null	Mon Dec 21 12:02:35 2015
+++ src/sys/arch/newsmips/include/fenv.h	Mon Dec 21 12:02:33 2015
@@ -0,0 +1,3 @@
+/*	$NetBSD: fenv.h,v 1.1 2015/12/21 17:02:33 christos Exp $	*/
+
+#include <mips/fenv.h>

Index: src/sys/arch/playstation2/include/fenv.h
diff -u /dev/null src/sys/arch/playstation2/include/fenv.h:1.1
--- /dev/null	Mon Dec 21 12:02:35 2015
+++ src/sys/arch/playstation2/include/fenv.h	Mon Dec 21 12:02:34 2015
@@ -0,0 +1,3 @@
+/*	$NetBSD: fenv.h,v 1.1 2015/12/21 17:02:34 christos Exp $	*/
+
+#include <mips/fenv.h>

Index: src/sys/arch/pmax/include/fenv.h
diff -u /dev/null src/sys/arch/pmax/include/fenv.h:1.1
--- /dev/null	Mon Dec 21 12:02:35 2015
+++ src/sys/arch/pmax/include/fenv.h	Mon Dec 21 12:02:34 2015
@@ -0,0 +1,3 @@
+/*	$NetBSD: fenv.h,v 1.1 2015/12/21 17:02:34 christos Exp $	*/
+
+#include <mips/fenv.h>

Index: src/sys/arch/sbmips/include/fenv.h
diff -u /dev/null src/sys/arch/sbmips/include/fenv.h:1.1
--- /dev/null	Mon Dec 21 12:02:35 2015
+++ src/sys/arch/sbmips/include/fenv.h	Mon Dec 21 12:02:34 2015
@@ -0,0 +1,3 @@
+/*	$NetBSD: fenv.h,v 1.1 2015/12/21 17:02:34 christos Exp $	*/
+
+#include <mips/fenv.h>

Index: src/sys/arch/sgimips/include/fenv.h
diff -u /dev/null src/sys/arch/sgimips/include/fenv.h:1.1
--- /dev/null	Mon Dec 21 12:02:35 2015
+++ src/sys/arch/sgimips/include/fenv.h	Mon Dec 21 12:02:34 2015
@@ -0,0 +1,3 @@
+/*	$NetBSD: fenv.h,v 1.1 2015/12/21 17:02:34 christos Exp $	*/
+
+#include <mips/fenv.h>

Reply via email to