diff options
author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-23 22:45:52 +0000 |
---|---|---|
committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-23 22:45:52 +0000 |
commit | c6e67146dfc1413300b709f170465c481ff46424 (patch) | |
tree | 52166a11b6bd1d1cf1a9b9f997e45f27d49f045c /libstdc++-v3/libmath | |
parent | 8955d355763dcf095399f1b1900d4ee1c5a8b450 (diff) | |
download | gcc-c6e67146dfc1413300b709f170465c481ff46424.tar.gz |
2001-06-24 David Edelsohn <dje@watson.ibm.com>
* 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
Diffstat (limited to 'libstdc++-v3/libmath')
-rw-r--r-- | libstdc++-v3/libmath/stubs.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libstdc++-v3/libmath/stubs.c b/libstdc++-v3/libmath/stubs.c index f25cb60fa69..fe7b57e65f2 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 |