From d4916912e538795a83d546737d91abfea479c399 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Sat, 23 Jun 2001 22:45:52 +0000 Subject: [PATCH] stubs.c (sqrtf): Define. 2001-06-24 David Edelsohn * libmath/stubs.c (sqrtf): Define. (tanf): Correct typo. From-SVN: r43532 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/libmath/stubs.c | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) 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 -- 2.30.2