diff options
author | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-04 05:02:40 +0000 |
---|---|---|
committer | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-04 05:02:40 +0000 |
commit | 2e15bb40edb5a1371c06c5face888a7835e09756 (patch) | |
tree | a98cc94f87dba7f95e5cbe02f5a359752e17880d /libstdc++-v3/libmath | |
parent | 1f1ea41292b96ee808ef20a17cf02ebde40f6949 (diff) | |
download | gcc-2e15bb40edb5a1371c06c5face888a7835e09756.tar.gz |
2003-11-01 Anthony Green <green@redhat.com>
* libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
they're used.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73243 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/libmath')
-rw-r--r-- | libstdc++-v3/libmath/stubs.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/libstdc++-v3/libmath/stubs.c b/libstdc++-v3/libmath/stubs.c index 1968bffe7f9..757af6df841 100644 --- a/libstdc++-v3/libmath/stubs.c +++ b/libstdc++-v3/libmath/stubs.c @@ -102,6 +102,23 @@ expl(long double x) #endif +#ifndef HAVE_SQRTF +float +sqrtf(float x) +{ + return (float) sqrt(x); +} +#endif + +#ifndef HAVE_SQRTL +long double +sqrtl(long double x) +{ + return sqrt((double) x); +} +#endif + + /* Compute the hypothenuse of a right triangle with side x and y. */ #ifndef HAVE_HYPOTF float @@ -226,23 +243,6 @@ sinhl(long double x) #endif -#ifndef HAVE_SQRTF -float -sqrtf(float x) -{ - return (float) sqrt(x); -} -#endif - -#ifndef HAVE_SQRTL -long double -sqrtl(long double x) -{ - return sqrt((double) x); -} -#endif - - #ifndef HAVE_TANF float tanf(float x) |