Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/arm Use generic version of fabs for softfloat.



details:   https://anonhg.NetBSD.org/src/rev/334d1d05e5b9
branches:  trunk
changeset: 326087:334d1d05e5b9
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Jan 17 22:19:46 2014 +0000

description:
Use generic version of fabs for softfloat.

diffstat:

 lib/libc/arch/arm/Makefile.inc             |   4 +-
 lib/libc/arch/arm/gen/Makefile.inc         |   4 +-
 lib/libc/arch/arm/hardfloat/fabs.S         |  40 ------------------------------
 lib/libc/arch/arm/hardfloat/fabs_ieee754.S |  40 ++++++++++++++++++++++++++++++
 4 files changed, 44 insertions(+), 44 deletions(-)

diffs (119 lines):

diff -r 1f1f0d069f98 -r 334d1d05e5b9 lib/libc/arch/arm/Makefile.inc
--- a/lib/libc/arch/arm/Makefile.inc    Fri Jan 17 20:24:20 2014 +0000
+++ b/lib/libc/arch/arm/Makefile.inc    Fri Jan 17 22:19:46 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.25 2013/09/03 00:30:19 matt Exp $
+# $NetBSD: Makefile.inc,v 1.26 2014/01/17 22:19:46 joerg Exp $
 
 .include <bsd.own.mk>
 
@@ -30,7 +30,7 @@
 .include <softfloat/Makefile.inc>
 .else
 .PATH : ${ARCHDIR}/hardfloat
-SRCS.hardfloat+=       fpgetround.c fpgetsticky.S fpgetmask.S
+SRCS.hardfloat+=       fpgetround.c fpgetsticky.S fpgetmask.S fabs_ieee754.S
 SRCS.hardfloat+=       fpsetround.c fpsetmask.S fpsetsticky.S
 .for f in ${SRCS.hardfloat}
 CPPFLAGS.${f} += -mfpu=vfp
diff -r 1f1f0d069f98 -r 334d1d05e5b9 lib/libc/arch/arm/gen/Makefile.inc
--- a/lib/libc/arch/arm/gen/Makefile.inc        Fri Jan 17 20:24:20 2014 +0000
+++ b/lib/libc/arch/arm/gen/Makefile.inc        Fri Jan 17 22:19:46 2014 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile.inc,v 1.26 2013/12/25 22:05:12 joerg Exp $
+# $NetBSD: Makefile.inc,v 1.27 2014/01/17 22:19:46 joerg Exp $
 
 SRCS+= alloca.S byte_swap_2.S byte_swap_4.S bswap64.c divide.S divsi3.S \
-       fabs.c flt_rounds.c udivsi3.S
+       fabs_ieee754.c flt_rounds.c udivsi3.S
 
 CPUFLAGS.divide.S+=            -marm
 
diff -r 1f1f0d069f98 -r 334d1d05e5b9 lib/libc/arch/arm/hardfloat/fabs.S
--- a/lib/libc/arch/arm/hardfloat/fabs.S        Fri Jan 17 20:24:20 2014 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,40 +0,0 @@
-/*-
- * Copyright (c) 2013 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Matt Thomas of 3am Software Foundry.
- *
- * 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 NETBSD FOUNDATION, INC. 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 FOUNDATION 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 <arm/asm.h>
-
-RCSID("$NetBSD: fabs.S,v 1.2 2013/11/30 22:39:04 joerg Exp $")
-
-       .fpu    vfp
-
-ENTRY(fabsl)
-ENTRY(fabs)
-       vabs.f64        d0, d0
-       RET
-END(fabs)
diff -r 1f1f0d069f98 -r 334d1d05e5b9 lib/libc/arch/arm/hardfloat/fabs_ieee754.S
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/arch/arm/hardfloat/fabs_ieee754.S        Fri Jan 17 22:19:46 2014 +0000
@@ -0,0 +1,40 @@
+/*-
+ * Copyright (c) 2013 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Matt Thomas of 3am Software Foundry.
+ *
+ * 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 NETBSD FOUNDATION, INC. 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 FOUNDATION 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 <arm/asm.h>
+
+RCSID("$NetBSD: fabs_ieee754.S,v 1.1 2014/01/17 22:19:46 joerg Exp $")
+
+       .fpu    vfp
+
+ENTRY(fabsl)
+ENTRY(fabs)
+       vabs.f64        d0, d0
+       RET
+END(fabs)



Home | Main Index | Thread Index | Old Index