OSDN Git Service

libstdc++-v3/
authorjbeulich <jbeulich@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 May 2005 14:00:06 +0000 (14:00 +0000)
committerjbeulich <jbeulich@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 May 2005 14:00:06 +0000 (14:00 +0000)
2005-05-20  Jan Beulich  <jbeulich@novell.com>

* libmath/stubs.c: Also implement fabsf/fabsl if not present in the
system libraries.

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

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

index efde72f..f4116a9 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-20  Jan Beulich  <jbeulich@novell.com>
+
+       * libmath/stubs.c: Also implement fabsf/fabsl if not present in the
+       system libraries.
+
 2005-05-20  Paolo Carlini  <pcarlini@suse.de>
 
        * include/bits/stl_algo.h (__rotate<_RandomAccessIterator>):
index 797b201..bbbe0fe 100644 (file)
    we use the crude approximation.  We'll do better later.  */
 
 
+#ifndef HAVE_FABSF
+float
+fabsf(float x)
+{
+  return (float) fabs(x);
+}
+#endif
+
+#ifndef HAVE_FABSL
+long double
+fabsl(long double x)
+{
+  return fabs((double) x);
+}
+#endif
+
+
 #ifndef HAVE_ACOSF
 float
 acosf(float x)