stubs.c (sqrtf): Define.
authorDavid Edelsohn <dje@watson.ibm.com>
Sat, 23 Jun 2001 22:45:52 +0000 (22:45 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Sat, 23 Jun 2001 22:45:52 +0000 (22:45 +0000)
2001-06-24  David Edelsohn <dje@watson.ibm.com>

        * libmath/stubs.c (sqrtf): Define.
        (tanf): Correct typo.

From-SVN: r43532

libstdc++-v3/ChangeLog
libstdc++-v3/libmath/stubs.c

index 9623194beb496c3aa5ae219910c3559dfd8326bd..ea450d66a344265c0bc79861ab50bf8282d2dd1c 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-24  David Edelsohn <dje@watson.ibm.com>
+
+       * libmath/stubs.c (sqrtf): Define.
+       (tanf): Correct typo.
+
 2001-06-22  Benjamin Kosnik  <bkoz@redhat.com>
 
        * include/bits/stl_iterator.h (reverse_iterator): Inherit from
index f25cb60fa69b30f0ae1b5f5103722724f97474c1..fe7b57e65f2a7b2a91f12af55688b0c66b9f88b3 100644 (file)
@@ -94,11 +94,18 @@ sinhf(float x)
 }
 #endif
 
+#ifndef _GLIBCPP_HAVE_SQRTF
+float
+sqrtf(float x)
+{
+  return (float) sqrt(x);
+}
+
 #ifndef _GLIBCPP_HAVE_TANF
 float
 tanf(float x)
 {
-  return (float) tanf(x);
+  return (float) tan(x);
 }
 #endif