OSDN Git Service

2001-06-24 David Edelsohn <dje@watson.ibm.com>
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 23 Jun 2001 22:45:52 +0000 (22:45 +0000)
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 23 Jun 2001 22:45:52 +0000 (22:45 +0000)
        * libmath/stubs.c (sqrtf): Define.
        (tanf): Correct typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43532 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 9623194..ea450d6 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 f25cb60..fe7b57e 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