summaryrefslogtreecommitdiff
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
parent17a9d1aac7640192816bf5b84219e858223974dc (diff)
alias fabsl to fabs on these archs
-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
-rw-r--r--lib/libm/arch/alpha/s_copysign.S6
-rw-r--r--lib/libm/arch/vax/n_atan2.S6
-rw-r--r--lib/libm/arch/vax/n_sincos.S10
-rw-r--r--lib/libm/arch/vax/n_sqrt.S6
-rw-r--r--lib/libm/arch/vax/n_support.S14
-rw-r--r--lib/libm/arch/vax/n_tan.S6
13 files changed, 38 insertions, 40 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
diff --git a/lib/libm/arch/alpha/s_copysign.S b/lib/libm/arch/alpha/s_copysign.S
index aebab3e3eb6..b6007fddc61 100644
--- a/lib/libm/arch/alpha/s_copysign.S
+++ b/lib/libm/arch/alpha/s_copysign.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_copysign.S,v 1.3 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: s_copysign.S,v 1.4 2008/12/09 20:21:07 martynas Exp $ */
/* $NetBSD: s_copysign.S,v 1.4 1999/07/02 15:37:34 simonb Exp $ */
/*-
@@ -32,9 +32,7 @@
#include <machine/asm.h>
-.weak copysignl
- copysignl = copysign
-
+WEAK_ALIAS(copysignl, copysign)
LEAF(copysign, 2)
cpys fa1, fa0, fv0
RET
diff --git a/lib/libm/arch/vax/n_atan2.S b/lib/libm/arch/vax/n_atan2.S
index 2cf39beeb90..55382f0bb07 100644
--- a/lib/libm/arch/vax/n_atan2.S
+++ b/lib/libm/arch/vax/n_atan2.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_atan2.S,v 1.4 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: n_atan2.S,v 1.5 2008/12/09 20:21:07 martynas Exp $ */
/* $NetBSD: n_atan2.S,v 1.1 1995/10/10 23:40:25 ragge Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -73,9 +73,7 @@
* atan2(y,x) returns the exact ARG(x+iy) nearly rounded.
*/
-.weak atan2l
- atan2l = atan2
-
+WEAK_ALIAS(atan2l, atan2)
ENTRY(atan2, R2|R3|R4|R5|R6|R7|R8|R9|R10|R11)
movq 4(ap),r2 # r2 = y
movq 12(ap),r4 # r4 = x
diff --git a/lib/libm/arch/vax/n_sincos.S b/lib/libm/arch/vax/n_sincos.S
index e0487088765..ca65d4af784 100644
--- a/lib/libm/arch/vax/n_sincos.S
+++ b/lib/libm/arch/vax/n_sincos.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_sincos.S,v 1.5 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: n_sincos.S,v 1.6 2008/12/09 20:21:07 martynas Exp $ */
/* $NetBSD: n_sincos.S,v 1.1 1995/10/10 23:40:28 ragge Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -48,9 +48,7 @@
* S. McDonald, April 4, 1985
*/
-.weak sinl
- sinl = sin
-
+WEAK_ALIAS(sinl, sin)
ENTRY(sin, R2|R3|R4|R5|R6|R7|R8|R9|R10|R11)
movq 4(ap),r0
bicw3 $0x807f,r0,r2
@@ -80,9 +78,7 @@ ENTRY(sin, R2|R3|R4|R5|R6|R7|R8|R9|R10|R11)
* S. McDonald, April 4, 1985
*/
-.weak cosl
- cosl = cos
-
+WEAK_ALIAS(cosl, cos)
ENTRY(cos, R2|R3|R4|R5|R6|R7|R8|R9|R10|R11)
movq 4(ap),r0
bicw3 $0x7f,r0,r2
diff --git a/lib/libm/arch/vax/n_sqrt.S b/lib/libm/arch/vax/n_sqrt.S
index a1fd2ba61fb..30c286ffcde 100644
--- a/lib/libm/arch/vax/n_sqrt.S
+++ b/lib/libm/arch/vax/n_sqrt.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_sqrt.S,v 1.6 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: n_sqrt.S,v 1.7 2008/12/09 20:21:07 martynas Exp $ */
/* $NetBSD: n_sqrt.S,v 1.1 1995/10/10 23:40:29 ragge Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -45,9 +45,7 @@
* entry points: sqrt double arg is on the stack
*/
-.weak sqrtl
- sqrtl = sqrt
-
+WEAK_ALIAS(sqrtl, sqrt)
ENTRY(sqrt, R2|R3|R4|R5)
movq 4(ap),r0
dsqrt2: bicw3 $0x807f,r0,r2 # check exponent of input
diff --git a/lib/libm/arch/vax/n_support.S b/lib/libm/arch/vax/n_support.S
index f2572586526..f060356a6a6 100644
--- a/lib/libm/arch/vax/n_support.S
+++ b/lib/libm/arch/vax/n_support.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_support.S,v 1.14 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: n_support.S,v 1.15 2008/12/09 20:21:07 martynas Exp $ */
/* $NetBSD: n_support.S,v 1.1 1995/10/10 23:40:30 ragge Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -51,9 +51,7 @@
* copysign(double x, double y)
*/
-.weak copysignl
- copysignl = copysign
-
+WEAK_ALIAS(copysignl, copysign)
ENTRY(copysign, R2)
movq 4(ap),r0 # load x into r0
bicw3 $0x807f,r0,r2 # mask off the exponent of x
@@ -82,9 +80,7 @@ Fz: ret
* logb(double x)
*/
-.weak logbl
- logbl = logb
-
+WEAK_ALIAS(logbl, logb)
ENTRY(logb, 0)
bicl3 $0xffff807f,4(ap),r0 # mask off the exponent of x
beql Ln
@@ -119,9 +115,7 @@ Fn: movl 4(ap),r0 # r0:1 = x (zero or reserved op)
* scalbn(double x, int N)
*/
-.weak scalbnl
- scalbnl = scalbn
-
+WEAK_ALIAS(scalbnl, scalbn)
ENTRY(scalbn, R2|R3)
movq 4(ap),r0
bicl3 $0xffff807f,r0,r3
diff --git a/lib/libm/arch/vax/n_tan.S b/lib/libm/arch/vax/n_tan.S
index 13ad1554429..a27ae77e6e5 100644
--- a/lib/libm/arch/vax/n_tan.S
+++ b/lib/libm/arch/vax/n_tan.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_tan.S,v 1.5 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: n_tan.S,v 1.6 2008/12/09 20:21:07 martynas Exp $ */
/* $NetBSD: n_tan.S,v 1.1 1995/10/10 23:40:31 ragge Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -46,9 +46,7 @@
* S. McDonald, April 4, 1985
*/
-.weak tanl
- tanl = tan
-
+WEAK_ALIAS(tanl, tan)
ENTRY(tan, R2|R3|R4|R5|R6|R7|R8|R9|R10|R11)
movq 4(ap),r0
bicw3 $0x807f,r0,r2