Source-Changes-HG archive

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

[src/trunk]: src/lib/libm Add a few missing weak aliases



details:   https://anonhg.NetBSD.org/src/rev/ea697e4f6065
branches:  trunk
changeset: 332863:ea697e4f6065
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Oct 10 20:58:09 2014 +0000

description:
Add a few missing weak aliases

diffstat:

 lib/libm/arch/vax/n_atan2.S    |   3 ++-
 lib/libm/arch/vax/n_cabs.S     |   4 +++-
 lib/libm/noieee_src/n_atan2.c  |   6 +++++-
 lib/libm/noieee_src/n_cosh.c   |   3 ++-
 lib/libm/noieee_src/n_exp.c    |   3 ++-
 lib/libm/noieee_src/n_log.c    |   3 ++-
 lib/libm/noieee_src/n_pow.c    |  14 +++++++-------
 lib/libm/noieee_src/n_sincos.c |   7 ++++++-
 lib/libm/noieee_src/n_sinh.c   |   3 ++-
 9 files changed, 31 insertions(+), 15 deletions(-)

diffs (178 lines):

diff -r d1c1cb7c9af0 -r ea697e4f6065 lib/libm/arch/vax/n_atan2.S
--- a/lib/libm/arch/vax/n_atan2.S       Fri Oct 10 20:57:48 2014 +0000
+++ b/lib/libm/arch/vax/n_atan2.S       Fri Oct 10 20:58:09 2014 +0000
@@ -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 @@
 
 #ifdef WEAK_ALIAS
 WEAK_ALIAS(atan2, _atan2)
+WEAK_ALIAS(_atan2l, _atan2)
 #endif
 
 ENTRY(_atan2, 0x0fc0)
diff -r d1c1cb7c9af0 -r ea697e4f6065 lib/libm/arch/vax/n_cabs.S
--- a/lib/libm/arch/vax/n_cabs.S        Fri Oct 10 20:57:48 2014 +0000
+++ b/lib/libm/arch/vax/n_cabs.S        Fri Oct 10 20:58:09 2014 +0000
@@ -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 @@
 
 #ifdef WEAK_ALIAS
 WEAK_ALIAS(hypot, _hypot)
+WEAK_ALIAS(hypotl, _hypot)
+WEAK_ALIAS(_hypotl, _hypot)
 #endif
 
 ALTENTRY(cabs)
diff -r d1c1cb7c9af0 -r ea697e4f6065 lib/libm/noieee_src/n_atan2.c
--- a/lib/libm/noieee_src/n_atan2.c     Fri Oct 10 20:57:48 2014 +0000
+++ b/lib/libm/noieee_src/n_atan2.c     Fri Oct 10 20:58:09 2014 +0000
@@ -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 @@
 #define        a12     vccast(a12)
 #endif
 
+#ifdef __weak_alias
+__weak_alias(_atan2l, atan2);
+#endif
+
 double
 atan2(double y, double x)
 {
diff -r d1c1cb7c9af0 -r ea697e4f6065 lib/libm/noieee_src/n_cosh.c
--- a/lib/libm/noieee_src/n_cosh.c      Fri Oct 10 20:57:48 2014 +0000
+++ b/lib/libm/noieee_src/n_cosh.c      Fri Oct 10 20:58:09 2014 +0000
@@ -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 @@
 
 #ifdef __weak_alias
 __weak_alias(cosh, _cosh);
+__weak_alias(_coshl, _cosh);
 __weak_alias(coshf, _coshf);
 #endif
 
diff -r d1c1cb7c9af0 -r ea697e4f6065 lib/libm/noieee_src/n_exp.c
--- a/lib/libm/noieee_src/n_exp.c       Fri Oct 10 20:57:48 2014 +0000
+++ b/lib/libm/noieee_src/n_exp.c       Fri Oct 10 20:58:09 2014 +0000
@@ -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 @@
 
 #ifdef __weak_alias
 __weak_alias(exp, _exp);
+__weak_alias(_expl, _exp);
 __weak_alias(expf, _expf);
 #endif
 
diff -r d1c1cb7c9af0 -r ea697e4f6065 lib/libm/noieee_src/n_log.c
--- a/lib/libm/noieee_src/n_log.c       Fri Oct 10 20:57:48 2014 +0000
+++ b/lib/libm/noieee_src/n_log.c       Fri Oct 10 20:58:09 2014 +0000
@@ -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 @@
 
 #ifdef __weak_alias
 __weak_alias(log, _log);
+__weak_alias(_logl, _log);
 __weak_alias(logf, _logf);
 #endif
 
diff -r d1c1cb7c9af0 -r ea697e4f6065 lib/libm/noieee_src/n_pow.c
--- a/lib/libm/noieee_src/n_pow.c       Fri Oct 10 20:57:48 2014 +0000
+++ b/lib/libm/noieee_src/n_pow.c       Fri Oct 10 20:58:09 2014 +0000
@@ -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 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 -r d1c1cb7c9af0 -r ea697e4f6065 lib/libm/noieee_src/n_sincos.c
--- a/lib/libm/noieee_src/n_sincos.c    Fri Oct 10 20:57:48 2014 +0000
+++ b/lib/libm/noieee_src/n_sincos.c    Fri Oct 10 20:58:09 2014 +0000
@@ -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 @@
 #include "mathimpl.h"
 #include "trig.h"
 
+#ifdef __weak_alias
+__weak_alias(_sinl, sin);
+__weak_alias(_cosl, cos);
+#endif
+
 double
 sin(double x)
 {
diff -r d1c1cb7c9af0 -r ea697e4f6065 lib/libm/noieee_src/n_sinh.c
--- a/lib/libm/noieee_src/n_sinh.c      Fri Oct 10 20:57:48 2014 +0000
+++ b/lib/libm/noieee_src/n_sinh.c      Fri Oct 10 20:58:09 2014 +0000
@@ -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 @@
 
 #ifdef __weak_alias
 __weak_alias(sinh, _sinh);
+__weak_alias(_sinhl, _sinh);
 __weak_alias(sinhf, _sinhf);
 #endif
 



Home | Main Index | Thread Index | Old Index