summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2014-10-10 20:58:09 +0000
committermartin <martin@NetBSD.org>2014-10-10 20:58:09 +0000
commit7d185d7ff1bb3480ad2d73c74fa7d1e9d2dafd01 (patch)
tree0ef20d452c9bcd176a8d17ea1ad4c369174d4adc /lib
parentfa37065718e297032bdb5b7c14eebaf075813fae (diff)
Add a few missing weak aliases
Diffstat (limited to 'lib')
-rw-r--r--lib/libm/arch/vax/n_atan2.S3
-rw-r--r--lib/libm/arch/vax/n_cabs.S4
-rw-r--r--lib/libm/noieee_src/n_atan2.c6
-rw-r--r--lib/libm/noieee_src/n_cosh.c3
-rw-r--r--lib/libm/noieee_src/n_exp.c3
-rw-r--r--lib/libm/noieee_src/n_log.c3
-rw-r--r--lib/libm/noieee_src/n_pow.c14
-rw-r--r--lib/libm/noieee_src/n_sincos.c7
-rw-r--r--lib/libm/noieee_src/n_sinh.c3
9 files changed, 31 insertions, 15 deletions
diff --git a/lib/libm/arch/vax/n_atan2.S b/lib/libm/arch/vax/n_atan2.S
index 816a51ab652..a6d1fe8fd83 100644
--- a/lib/libm/arch/vax/n_atan2.S
+++ b/lib/libm/arch/vax/n_atan2.S
@@ -1,4 +1,4 @@
-/* $NetBSD: n_atan2.S,v 1.8 2008/03/20 18:49:39 mhitch Exp $ */
+/* $NetBSD: n_atan2.S,v 1.9 2014/10/10 20:58:09 martin Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
@@ -84,6 +84,7 @@ ENTRY(_atan2f, 0)
#ifdef WEAK_ALIAS
WEAK_ALIAS(atan2, _atan2)
+WEAK_ALIAS(_atan2l, _atan2)
#endif
ENTRY(_atan2, 0x0fc0)
diff --git a/lib/libm/arch/vax/n_cabs.S b/lib/libm/arch/vax/n_cabs.S
index faf55fb7237..a61bab0bb80 100644
--- a/lib/libm/arch/vax/n_cabs.S
+++ b/lib/libm/arch/vax/n_cabs.S
@@ -1,4 +1,4 @@
-/* $NetBSD: n_cabs.S,v 1.6 2008/03/20 16:41:26 mhitch Exp $ */
+/* $NetBSD: n_cabs.S,v 1.7 2014/10/10 20:58:09 martin Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
@@ -55,6 +55,8 @@ ENTRY(_hypotf, 0)
#ifdef WEAK_ALIAS
WEAK_ALIAS(hypot, _hypot)
+WEAK_ALIAS(hypotl, _hypot)
+WEAK_ALIAS(_hypotl, _hypot)
#endif
ALTENTRY(cabs)
diff --git a/lib/libm/noieee_src/n_atan2.c b/lib/libm/noieee_src/n_atan2.c
index a1fcdc5a4a7..996cee51641 100644
--- a/lib/libm/noieee_src/n_atan2.c
+++ b/lib/libm/noieee_src/n_atan2.c
@@ -1,4 +1,4 @@
-/* $NetBSD: n_atan2.c,v 1.6 2003/08/07 16:44:50 agc Exp $ */
+/* $NetBSD: n_atan2.c,v 1.7 2014/10/10 20:58:09 martin Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
@@ -170,6 +170,10 @@ ic(a11, 1.6438029044759730479E-2 , -6, 1.0D52174A1BB54)
#define a12 vccast(a12)
#endif
+#ifdef __weak_alias
+__weak_alias(_atan2l, atan2);
+#endif
+
double
atan2(double y, double x)
{
diff --git a/lib/libm/noieee_src/n_cosh.c b/lib/libm/noieee_src/n_cosh.c
index 5e86353f4d7..66c1086d9e2 100644
--- a/lib/libm/noieee_src/n_cosh.c
+++ b/lib/libm/noieee_src/n_cosh.c
@@ -1,4 +1,4 @@
-/* $NetBSD: n_cosh.c,v 1.8 2008/03/20 16:41:26 mhitch Exp $ */
+/* $NetBSD: n_cosh.c,v 1.9 2014/10/10 20:58:09 martin Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
@@ -87,6 +87,7 @@ static char sccsid[] = "@(#)cosh.c 8.1 (Berkeley) 6/4/93";
#ifdef __weak_alias
__weak_alias(cosh, _cosh);
+__weak_alias(_coshl, _cosh);
__weak_alias(coshf, _coshf);
#endif
diff --git a/lib/libm/noieee_src/n_exp.c b/lib/libm/noieee_src/n_exp.c
index 68cf6e8bccb..21c5874bb99 100644
--- a/lib/libm/noieee_src/n_exp.c
+++ b/lib/libm/noieee_src/n_exp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: n_exp.c,v 1.8 2008/03/20 16:41:26 mhitch Exp $ */
+/* $NetBSD: n_exp.c,v 1.9 2014/10/10 20:58:09 martin Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
@@ -82,6 +82,7 @@ static char sccsid[] = "@(#)exp.c 8.1 (Berkeley) 6/4/93";
#ifdef __weak_alias
__weak_alias(exp, _exp);
+__weak_alias(_expl, _exp);
__weak_alias(expf, _expf);
#endif
diff --git a/lib/libm/noieee_src/n_log.c b/lib/libm/noieee_src/n_log.c
index 917629320d3..e5ed63ededb 100644
--- a/lib/libm/noieee_src/n_log.c
+++ b/lib/libm/noieee_src/n_log.c
@@ -1,4 +1,4 @@
-/* $NetBSD: n_log.c,v 1.7 2008/03/20 16:41:26 mhitch Exp $ */
+/* $NetBSD: n_log.c,v 1.8 2014/10/10 20:58:09 martin Exp $ */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -43,6 +43,7 @@ static char sccsid[] = "@(#)log.c 8.2 (Berkeley) 11/30/93";
#ifdef __weak_alias
__weak_alias(log, _log);
+__weak_alias(_logl, _log);
__weak_alias(logf, _logf);
#endif
diff --git a/lib/libm/noieee_src/n_pow.c b/lib/libm/noieee_src/n_pow.c
index 28a188640eb..c0d1242529e 100644
--- a/lib/libm/noieee_src/n_pow.c
+++ b/lib/libm/noieee_src/n_pow.c
@@ -1,4 +1,4 @@
-/* $NetBSD: n_pow.c,v 1.9 2013/11/24 14:46:18 martin Exp $ */
+/* $NetBSD: n_pow.c,v 1.10 2014/10/10 20:58:09 martin Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
@@ -122,18 +122,18 @@ static const double zero=0.0, one=1.0, two=2.0, negone= -1.0;
static double pow_P (double, double);
+#ifdef __weak_alias
+__weak_alias(_powf, powf);
+__weak_alias(_pow, pow);
+__weak_alias(_powl, pow);
+#endif
+
float
powf(float x, float y)
{
return pow((double) x, (double) (y));
}
-long double
-powl(long double x, long double y)
-{
- return pow((double) x, (double) (y));
-}
-
double
pow(double x, double y)
{
diff --git a/lib/libm/noieee_src/n_sincos.c b/lib/libm/noieee_src/n_sincos.c
index 8a2ed1a7aff..07675e708ff 100644
--- a/lib/libm/noieee_src/n_sincos.c
+++ b/lib/libm/noieee_src/n_sincos.c
@@ -1,4 +1,4 @@
-/* $NetBSD: n_sincos.c,v 1.6 2003/08/07 16:44:52 agc Exp $ */
+/* $NetBSD: n_sincos.c,v 1.7 2014/10/10 20:58:09 martin Exp $ */
/*
* Copyright (c) 1987, 1993
* The Regents of the University of California. All rights reserved.
@@ -38,6 +38,11 @@ static char sccsid[] = "@(#)sincos.c 8.1 (Berkeley) 6/4/93";
#include "mathimpl.h"
#include "trig.h"
+#ifdef __weak_alias
+__weak_alias(_sinl, sin);
+__weak_alias(_cosl, cos);
+#endif
+
double
sin(double x)
{
diff --git a/lib/libm/noieee_src/n_sinh.c b/lib/libm/noieee_src/n_sinh.c
index f4d3fd57cee..eb2820cdd21 100644
--- a/lib/libm/noieee_src/n_sinh.c
+++ b/lib/libm/noieee_src/n_sinh.c
@@ -1,4 +1,4 @@
-/* $NetBSD: n_sinh.c,v 1.7 2008/03/20 16:41:26 mhitch Exp $ */
+/* $NetBSD: n_sinh.c,v 1.8 2014/10/10 20:58:09 martin Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
@@ -80,6 +80,7 @@ static char sccsid[] = "@(#)sinh.c 8.1 (Berkeley) 6/4/93";
#ifdef __weak_alias
__weak_alias(sinh, _sinh);
+__weak_alias(_sinhl, _sinh);
__weak_alias(sinhf, _sinhf);
#endif