aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edelsohn <dje@watson.ibm.com>2001-06-23 22:45:52 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2001-06-23 22:45:52 +0000
commitd4916912e538795a83d546737d91abfea479c399 (patch)
tree52166a11b6bd1d1cf1a9b9f997e45f27d49f045c
parent7a2e09f40f58237e6f9e0a409e4373484baf3041 (diff)
downloadgcc-d4916912e538795a83d546737d91abfea479c399.zip
gcc-d4916912e538795a83d546737d91abfea479c399.tar.gz
gcc-d4916912e538795a83d546737d91abfea479c399.tar.bz2
stubs.c (sqrtf): Define.
2001-06-24 David Edelsohn <dje@watson.ibm.com> * libmath/stubs.c (sqrtf): Define. (tanf): Correct typo. From-SVN: r43532
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/libmath/stubs.c9
2 files changed, 13 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 9623194..ea450d6 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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
diff --git a/libstdc++-v3/libmath/stubs.c b/libstdc++-v3/libmath/stubs.c
index f25cb60..fe7b57e 100644
--- a/libstdc++-v3/libmath/stubs.c
+++ b/libstdc++-v3/libmath/stubs.c
@@ -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