diff options
author | Anthony Green <green@redhat.com> | 2003-11-04 05:02:40 +0000 |
---|---|---|
committer | Anthony Green <green@gcc.gnu.org> | 2003-11-04 05:02:40 +0000 |
commit | 1b9e6d64846f9418abd1c79c97b3ba813061d055 (patch) | |
tree | a98cc94f87dba7f95e5cbe02f5a359752e17880d | |
parent | 4c411e4f7e7fe6607bbb5cae0a931b8484c7f28d (diff) | |
download | gcc-1b9e6d64846f9418abd1c79c97b3ba813061d055.zip gcc-1b9e6d64846f9418abd1c79c97b3ba813061d055.tar.gz gcc-1b9e6d64846f9418abd1c79c97b3ba813061d055.tar.bz2 |
stubs.c (sqrtf, sqrtl): Reorder so they appear before they're used.
2003-11-01 Anthony Green <green@redhat.com>
* libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
they're used.
From-SVN: r73243
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/libmath/stubs.c | 34 |
2 files changed, 22 insertions, 17 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index cb0c9a3..d8242e9 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2003-11-03 Anthony Green <green@redhat.com> + + * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before + they're used. + 2003-11-03 Benjamin Kosnik <bkoz@redhat.com> * include/bits/locale_facets.h (time_get::_M_extract_name): Add diff --git a/libstdc++-v3/libmath/stubs.c b/libstdc++-v3/libmath/stubs.c index 1968bff..757af6d 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) |