Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/m68k/gen Add no/op routines for m68000 for the...
details: https://anonhg.NetBSD.org/src/rev/c7fe90e50e20
branches: trunk
changeset: 749408:c7fe90e50e20
user: christos <christos%NetBSD.org@localhost>
date: Sat Nov 28 23:46:38 2009 +0000
description:
Add no/op routines for m68000 for the sticky, mask, and round settings.
diffstat:
lib/libc/arch/m68k/gen/Makefile.inc | 5 ++++-
lib/libc/arch/m68k/gen/fpfake.c | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 41 insertions(+), 1 deletions(-)
diffs (60 lines):
diff -r 835ce3bdd636 -r c7fe90e50e20 lib/libc/arch/m68k/gen/Makefile.inc
--- a/lib/libc/arch/m68k/gen/Makefile.inc Sat Nov 28 22:38:07 2009 +0000
+++ b/lib/libc/arch/m68k/gen/Makefile.inc Sat Nov 28 23:46:38 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.28 2006/07/03 12:54:34 drochner Exp $
+# $NetBSD: Makefile.inc,v 1.29 2009/11/28 23:46:38 christos Exp $
SRCS+= alloca.S fabs.S
@@ -33,6 +33,9 @@
.if (${MACHINE_ARCH} == "m68000" || ${MKSOFTFLOAT} == "yes")
SRCS+= modf_ieee754.c # generic ieee754 version
SRCS+= flt_rounds_softfloat.S
+.if ${MKSOFTFLOAT} != "yes"
+SRCS+= fpfake.c
+.endif
.else
SRCS+= modf.S
SRCS+= flt_rounds.S fpgetmask.S fpgetround.S fpgetsticky.S fpsetmask.S \
diff -r 835ce3bdd636 -r c7fe90e50e20 lib/libc/arch/m68k/gen/fpfake.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/arch/m68k/gen/fpfake.c Sat Nov 28 23:46:38 2009 +0000
@@ -0,0 +1,37 @@
+#include <ieeefp.h>
+
+fp_except
+fpgetmask(void)
+{
+ return 0;
+}
+
+fp_rnd
+fpgetround(void)
+{
+ return 0;
+}
+
+fp_except
+fpgetsticky(void)
+{
+ return 0;
+}
+
+fp_except
+fpsetmask(fp_except mask)
+{
+ return 0;
+}
+
+fp_rnd
+fpsetround(fp_rnd rnd_dir)
+{
+ return 0;
+}
+
+fp_except
+fpsetsticky(fp_except sticky)
+{
+ return 0;
+}
Home |
Main Index |
Thread Index |
Old Index