]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* include/c/bits/std_cmath.h (abs): Change extern "C" declaration
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Nov 2000 00:43:39 +0000 (00:43 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Nov 2000 00:43:39 +0000 (00:43 +0000)
of `abs (double)' to ...
(fabs): this.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37413 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/c/bits/std_cmath.h

index 009168be43507a38a89c0c4f2ab5ec4b004fb10d..f705ff2ce680eaf926ddf5f01558b289dd4b405f 100644 (file)
@@ -1,5 +1,9 @@
 2000-11-12  Mark Mitchell  <mark@codesourcery.com>
 
+       * include/c/bits/std_cmath.h (abs): Change extern "C" declaration
+       of `abs (double)' to ...
+       (fabs): this.
+
        * config/os/solaris/solaris2.7/bits/os_defines.h: Define
        __EXTENSIONS__.
 
index 5a2c50567375816693278edd4971f7111d4e57d7..eee7649cc3e901aa19eb2f3b3ade66be0f7b35e3 100644 (file)
@@ -263,13 +263,6 @@ namespace std
 #endif
 
 
-#if _GLIBCPP_HAVE___BUILTIN_FABS
-  inline double 
-  abs(double __x) { return __builtin_fabs(__x); }
-#else
-  extern "C" double abs(double __x);
-#endif
-
   extern "C" double acos(double __x);
 
   extern "C" double asin(double __x);
@@ -298,6 +291,14 @@ namespace std
   extern "C" double fabs(double __x);
 #endif
 
+#if _GLIBCPP_HAVE___BUILTIN_FABS
+  inline double 
+  abs(double __x) { return __builtin_fabs(__x); }
+#else
+  inline double
+  abs(double __x) { return fabs (__x); }
+#endif
+
   extern "C" double floor(double __x);
 
   extern "C" double fmod(double __x, double __y);