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
+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>):
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)