From: David Edelsohn Date: Sat, 23 Jun 2001 22:45:52 +0000 (+0000) Subject: stubs.c (sqrtf): Define. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4916912e538795a83d546737d91abfea479c399;p=gcc.git stubs.c (sqrtf): Define. 2001-06-24 David Edelsohn * libmath/stubs.c (sqrtf): Define. (tanf): Correct typo. From-SVN: r43532 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 9623194beb4..ea450d66a34 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2001-06-24 David Edelsohn + + * libmath/stubs.c (sqrtf): Define. + (tanf): Correct typo. + 2001-06-22 Benjamin Kosnik * include/bits/stl_iterator.h (reverse_iterator): Inherit from 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