summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2008-12-09 20:21:08 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2008-12-09 20:21:08 +0000
commitc59845ec3f1de5043f41f9512104f71073999f02 (patch)
tree9c6c9a5c58fc1baaf0a09ff04413cdd08317b833 /lib/libc
parent17a9d1aac7640192816bf5b84219e858223974dc (diff)
alias fabsl to fabs on these archs
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/alpha/gen/fabs.S3
-rw-r--r--lib/libc/arch/arm/gen/fabs.c5
-rw-r--r--lib/libc/arch/hppa/gen/fabs.c6
-rw-r--r--lib/libc/arch/powerpc/gen/fabs.c5
-rw-r--r--lib/libc/arch/sh/gen/fabs.c5
-rw-r--r--lib/libc/arch/sparc/gen/fabs.S3
-rw-r--r--lib/libc/arch/vax/gen/fabs.S3
7 files changed, 23 insertions, 7 deletions
diff --git a/lib/libc/arch/alpha/gen/fabs.S b/lib/libc/arch/alpha/gen/fabs.S
index 8246cd92149..6bcb3a2e30a 100644
--- a/lib/libc/arch/alpha/gen/fabs.S
+++ b/lib/libc/arch/alpha/gen/fabs.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: fabs.S,v 1.4 2005/08/07 16:40:13 espie Exp $ */
+/* $OpenBSD: fabs.S,v 1.5 2008/12/09 20:21:06 martynas Exp $ */
/* $NetBSD: fabs.S,v 1.2 1996/10/17 03:08:05 cgd Exp $ */
/*
@@ -30,6 +30,7 @@
#include <machine/asm.h>
+WEAK_ALIAS(fabsl, fabs)
LEAF(fabs, 1)
cpys fzero, fa0, fv0
RET
diff --git a/lib/libc/arch/arm/gen/fabs.c b/lib/libc/arch/arm/gen/fabs.c
index aa1d8e07362..b018e176ce3 100644
--- a/lib/libc/arch/arm/gen/fabs.c
+++ b/lib/libc/arch/arm/gen/fabs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fabs.c,v 1.3 2008/07/23 18:11:13 martynas Exp $ */
+/* $OpenBSD: fabs.c,v 1.4 2008/12/09 20:21:06 martynas Exp $ */
/*
* Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org>
*
@@ -15,6 +15,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <machine/cdefs.h>
#include <sys/types.h>
#include <machine/ieee.h>
@@ -30,3 +31,5 @@ fabs(double d)
return(d);
}
+
+__weak_alias(fabsl, fabs);
diff --git a/lib/libc/arch/hppa/gen/fabs.c b/lib/libc/arch/hppa/gen/fabs.c
index 88cfb3c39ca..ac0479fd84b 100644
--- a/lib/libc/arch/hppa/gen/fabs.c
+++ b/lib/libc/arch/hppa/gen/fabs.c
@@ -1,9 +1,11 @@
-/* $OpenBSD: fabs.c,v 1.3 2002/10/21 18:41:05 mickey Exp $ */
+/* $OpenBSD: fabs.c,v 1.4 2008/12/09 20:21:06 martynas Exp $ */
/*
* Written by Miodrag Vallat. Public domain
*/
+#include <machine/cdefs.h>
+
double
fabs(double val)
{
@@ -11,3 +13,5 @@ fabs(double val)
__asm__ __volatile__("fabs,dbl %0,%0" : "+f" (val));
return (val);
}
+
+__weak_alias(fabsl, fabs);
diff --git a/lib/libc/arch/powerpc/gen/fabs.c b/lib/libc/arch/powerpc/gen/fabs.c
index e34dfdf7b2b..7fdcf7295a5 100644
--- a/lib/libc/arch/powerpc/gen/fabs.c
+++ b/lib/libc/arch/powerpc/gen/fabs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fabs.c,v 1.2 2002/06/17 19:15:46 deraadt Exp $ */
+/* $OpenBSD: fabs.c,v 1.3 2008/12/09 20:21:06 martynas Exp $ */
/*
* Copyright (c) 2002 Theo de Raadt
@@ -25,6 +25,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <machine/cdefs.h>
#include <math.h>
double
@@ -33,3 +34,5 @@ fabs(double x)
__asm__ __volatile("fabs %0,%1" : "=f"(x) : "f"(x));
return (x);
}
+
+__weak_alias(fabsl, fabs);
diff --git a/lib/libc/arch/sh/gen/fabs.c b/lib/libc/arch/sh/gen/fabs.c
index cadfc0e03ed..f83d28ec053 100644
--- a/lib/libc/arch/sh/gen/fabs.c
+++ b/lib/libc/arch/sh/gen/fabs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fabs.c,v 1.4 2008/07/23 18:11:14 martynas Exp $ */
+/* $OpenBSD: fabs.c,v 1.5 2008/12/09 20:21:06 martynas Exp $ */
/*
* Copyright (c) 2006 Miodrag Vallat.
*
@@ -16,6 +16,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <machine/cdefs.h>
#if !defined(__SH4__) || defined(__SH4_NOFPU__)
#include <sys/types.h>
#include <machine/ieee.h>
@@ -35,3 +36,5 @@ fabs(double d)
#endif
return (d);
}
+
+__weak_alias(fabsl, fabs);
diff --git a/lib/libc/arch/sparc/gen/fabs.S b/lib/libc/arch/sparc/gen/fabs.S
index 3f903cc8eeb..aa4e46c27a8 100644
--- a/lib/libc/arch/sparc/gen/fabs.S
+++ b/lib/libc/arch/sparc/gen/fabs.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: fabs.S,v 1.5 2005/08/07 16:40:15 espie Exp $ */
+/* $OpenBSD: fabs.S,v 1.6 2008/12/09 20:21:07 martynas Exp $ */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -36,6 +36,7 @@
#include "DEFS.h"
+WEAK_ALIAS(fabsl, fabs)
ENTRY(fabs)
std %o0, [%sp + 32] ! return value => %f0:f1
ldd [%sp + 32], %f0 ! (via kernel %o0/%o1 slot)
diff --git a/lib/libc/arch/vax/gen/fabs.S b/lib/libc/arch/vax/gen/fabs.S
index b1ae5b974fc..0e0b567880d 100644
--- a/lib/libc/arch/vax/gen/fabs.S
+++ b/lib/libc/arch/vax/gen/fabs.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: fabs.S,v 1.4 2005/08/07 16:40:15 espie Exp $ */
+/* $OpenBSD: fabs.S,v 1.5 2008/12/09 20:21:07 martynas Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -32,6 +32,7 @@
#include "DEFS.h"
+WEAK_ALIAS(fabsl, fabs)
ENTRY(fabs, 0)
movd 4(ap),r0
bgeq 1f