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/hardfloat Move the hardfloat stuff to its...
details: https://anonhg.NetBSD.org/src/rev/b53655d33f17
branches: trunk
changeset: 787978:b53655d33f17
user: matt <matt%NetBSD.org@localhost>
date: Wed Jul 17 06:39:06 2013 +0000
description:
Move the hardfloat stuff to its own directory.
Rewrite fp{get,set}{mask,round,sticky} in C
diffstat:
lib/libc/arch/m68k/hardfloat/adddf3.S | 56 +++++++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/addsf3.S | 54 ++++++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/cmpdf2.S | 59 ++++++++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/cmpsf2.S | 59 ++++++++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/divdf3.S | 56 +++++++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/divsf3.S | 54 ++++++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/extendsfdf2.S | 55 ++++++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/fixdfsi.S | 51 ++++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/fixunsdfsi.S | 58 ++++++++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/floatsidf.S | 55 ++++++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/flt_rounds.c | 45 +++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/fpgetmask.c | 47 ++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/fpgetround.c | 47 ++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/fpgetsticky.c | 47 ++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/fpsetmask.c | 51 ++++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/fpsetround.c | 51 ++++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/fpsetsticky.c | 51 ++++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/ldexp_881.c | 55 ++++++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/modf.S | 62 ++++++++++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/muldf3.S | 56 +++++++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/mulsf3.S | 54 ++++++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/subdf3.S | 56 +++++++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/subsf3.S | 54 ++++++++++++++++++++++++++
lib/libc/arch/m68k/hardfloat/truncdfsf2.S | 53 +++++++++++++++++++++++++
24 files changed, 1286 insertions(+), 0 deletions(-)
diffs (truncated from 1382 to 300 lines):
diff -r 8c78f15f3a50 -r b53655d33f17 lib/libc/arch/m68k/hardfloat/adddf3.S
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/arch/m68k/hardfloat/adddf3.S Wed Jul 17 06:39:06 2013 +0000
@@ -0,0 +1,56 @@
+/* $NetBSD: adddf3.S,v 1.1 2013/07/17 06:39:06 matt Exp $ */
+
+/*-
+ * Copyright (c) 1990 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * the Systems Programming Group of the University of Utah Computer
+ * Science Department.
+ *
+ * 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.
+ * 3. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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.
+ */
+
+#include <machine/asm.h>
+
+#if defined(LIBC_SCCS) && !defined(lint)
+#if 0
+ RCSID("from: @(#)adddf3.s 5.1 (Berkeley) 6/7/90")
+#else
+ RCSID("$NetBSD: adddf3.S,v 1.1 2013/07/17 06:39:06 matt Exp $")
+#endif
+#endif /* LIBC_SCCS and not lint */
+
+/* double + double */
+ENTRY(__adddf3)
+ fmoved 4(%sp),%fp0
+ faddd 12(%sp),%fp0
+#ifndef __SVR4_ABI__
+ fmoved %fp0,-(%sp)
+ movel (%sp)+,%d0
+ movel (%sp)+,%d1
+#endif
+ rts
+END(__adddf3)
diff -r 8c78f15f3a50 -r b53655d33f17 lib/libc/arch/m68k/hardfloat/addsf3.S
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/arch/m68k/hardfloat/addsf3.S Wed Jul 17 06:39:06 2013 +0000
@@ -0,0 +1,54 @@
+/* $NetBSD: addsf3.S,v 1.1 2013/07/17 06:39:06 matt Exp $ */
+
+/*-
+ * Copyright (c) 1990 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * the Systems Programming Group of the University of Utah Computer
+ * Science Department.
+ *
+ * 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.
+ * 3. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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.
+ */
+
+#include <machine/asm.h>
+
+#if defined(LIBC_SCCS) && !defined(lint)
+#if 0
+ RCSID("from: @(#)addsf3.s 5.1 (Berkeley) 6/7/90")
+#else
+ RCSID("$NetBSD: addsf3.S,v 1.1 2013/07/17 06:39:06 matt Exp $")
+#endif
+#endif /* LIBC_SCCS and not lint */
+
+/* single + single */
+ENTRY(__addsf3)
+ fmoves 4(%sp),%fp0
+ fadds 8(%sp),%fp0
+#ifndef __SVR4_ABI__
+ fmoves %fp0,%d0
+#endif
+ rts
+END(__addsf3)
diff -r 8c78f15f3a50 -r b53655d33f17 lib/libc/arch/m68k/hardfloat/cmpdf2.S
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/arch/m68k/hardfloat/cmpdf2.S Wed Jul 17 06:39:06 2013 +0000
@@ -0,0 +1,59 @@
+/* $NetBSD: cmpdf2.S,v 1.1 2013/07/17 06:39:06 matt Exp $ */
+
+/*-
+ * Copyright (c) 1990 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * the Systems Programming Group of the University of Utah Computer
+ * Science Department.
+ *
+ * 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.
+ * 3. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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.
+ */
+
+#include <machine/asm.h>
+
+#if defined(LIBC_SCCS) && !defined(lint)
+#if 0
+ RCSID("from: @(#)cmpdf2.s 5.1 (Berkeley) 6/7/90")
+#else
+ RCSID("$NetBSD: cmpdf2.S,v 1.1 2013/07/17 06:39:06 matt Exp $")
+#endif
+#endif /* LIBC_SCCS and not lint */
+
+/* double > double: 1 */
+/* double < double: -1 */
+/* double == double: 0 */
+ENTRY(__cmpdf2)
+ fmoved 4(%sp),%fp0
+ fcmpd 12(%sp),%fp0
+ fbgt Lagtb
+ fslt %d0
+ extbl %d0
+ rts
+Lagtb:
+ moveq #1,%d0
+ rts
+END(__cmpdf2)
diff -r 8c78f15f3a50 -r b53655d33f17 lib/libc/arch/m68k/hardfloat/cmpsf2.S
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/arch/m68k/hardfloat/cmpsf2.S Wed Jul 17 06:39:06 2013 +0000
@@ -0,0 +1,59 @@
+/* $NetBSD: cmpsf2.S,v 1.1 2013/07/17 06:39:06 matt Exp $ */
+
+/*-
+ * Copyright (c) 1990 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * the Systems Programming Group of the University of Utah Computer
+ * Science Department.
+ *
+ * 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.
+ * 3. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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.
+ */
+
+#include <machine/asm.h>
+
+#if defined(LIBC_SCCS) && !defined(lint)
+#if 0
+ RCSID("from: @(#)cmpsf2.s 5.1 (Berkeley) 6/7/90")
+#else
+ RCSID("$NetBSD: cmpsf2.S,v 1.1 2013/07/17 06:39:06 matt Exp $")
+#endif
+#endif /* LIBC_SCCS and not lint */
+
+/* single > single: 1 */
+/* single < single: -1 */
+/* single == single: 0 */
+ENTRY(__cmpsf2)
+ fmoves 4(%sp),%fp0
+ fcmps 8(%sp),%fp0
+ fbgt Lagtb
+ fslt %d0
+ extbl %d0
+ rts
+Lagtb:
+ moveq #1,%d0
+ rts
+END(__cmpsf2)
diff -r 8c78f15f3a50 -r b53655d33f17 lib/libc/arch/m68k/hardfloat/divdf3.S
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/arch/m68k/hardfloat/divdf3.S Wed Jul 17 06:39:06 2013 +0000
@@ -0,0 +1,56 @@
+/* $NetBSD: divdf3.S,v 1.1 2013/07/17 06:39:06 matt Exp $ */
+
+/*-
+ * Copyright (c) 1990 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * the Systems Programming Group of the University of Utah Computer
+ * Science Department.
+ *
+ * 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.
+ * 3. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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.
+ */
+
+#include <machine/asm.h>
+
+#if defined(LIBC_SCCS) && !defined(lint)
+#if 0
+ RCSID("from: @(#)divdf3.s 5.1 (Berkeley) 6/7/90")
+#else
+ RCSID("$NetBSD: divdf3.S,v 1.1 2013/07/17 06:39:06 matt Exp $")
+#endif
+#endif /* LIBC_SCCS and not lint */
+
+/* double / double */
+ENTRY(__divdf3)
+ fmoved 4(%sp),%fp0
+ fdivd 12(%sp),%fp0
+#ifndef __SVR4_ABI__
+ fmoved %fp0,-(%sp)
+ movel (%sp)+,%d0
Home |
Main Index |
Thread Index |
Old Index