This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
gcc/libstdc++-v3 ChangeLog libmath/stubs.c
- From: jbeulich at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org, libstdc++-cvs at gcc dot gnu dot org
- Date: 20 May 2005 16:07:53 -0000
- Subject: gcc/libstdc++-v3 ChangeLog libmath/stubs.c
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: jbeulich@gcc.gnu.org 2005-05-20 16:07:49
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/libmath: stubs.c
Log message:
libstdc++-v3/
2005-05-20 Jan Beulich <jbeulich@novell.com>
* libmath/stubs.c: Also implement fabsf/fabsl if not present in the
system libraries.
--- /home/jbeulich/src/gcc/mainline/2005-05-18/libstdc++-v3/libmath/stubs.c 2003-11-15 15:26:47.000000000 +0100
+++ 2005-05-18/libstdc++-v3/libmath/stubs.c 2005-05-11 13:54:17.000000000 +0200
@@ -34,6 +34,23 @@
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)
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.2917.2.51&r2=1.2917.2.52
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/libmath/stubs.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.13&r2=1.13.66.1