stubs.c (sqrtf, sqrtl): Reorder so they appear before they're used.
authorAnthony Green <green@redhat.com>
Tue, 4 Nov 2003 05:02:40 +0000 (05:02 +0000)
committerAnthony Green <green@gcc.gnu.org>
Tue, 4 Nov 2003 05:02:40 +0000 (05:02 +0000)
2003-11-01  Anthony Green  <green@redhat.com>

        * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
        they're used.

From-SVN: r73243

libstdc++-v3/ChangeLog
libstdc++-v3/libmath/stubs.c

index cb0c9a384d6e5b4be9a8e2f80da8844b050e3a17..d8242e94701ebc340649b9786569b1c9df376dad 100644 (file)
@@ -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
index 1968bffe7f9a110670b561aa3e13e4ed766372ca..757af6df8417030eabc99069dc5f35a0d627c4a5 100644 (file)
@@ -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)