summaryrefslogtreecommitdiff
path: root/libstdc++-v3/libmath
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2005-05-20 14:00:06 +0000
committerJan Beulich <jbeulich@gcc.gnu.org>2005-05-20 14:00:06 +0000
commit0d25c320b9298fcf63df9ceb0e3e713a49402d76 (patch)
treed00b63515e159ccf353eb71a69cfa1fd73ecde56 /libstdc++-v3/libmath
parenta809005264c4eb6afb51d39621e582c505a4c590 (diff)
downloadgcc-0d25c320b9298fcf63df9ceb0e3e713a49402d76.tar.gz
stubs.c: Also implement fabsf/fabsl if not present in the system libraries.
libstdc++-v3/ 2005-05-20 Jan Beulich <jbeulich@novell.com> * libmath/stubs.c: Also implement fabsf/fabsl if not present in the system libraries. From-SVN: r100013
Diffstat (limited to 'libstdc++-v3/libmath')
-rw-r--r--libstdc++-v3/libmath/stubs.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/libstdc++-v3/libmath/stubs.c b/libstdc++-v3/libmath/stubs.c
index 797b2017fb0..bbbe0fe3d16 100644
--- a/libstdc++-v3/libmath/stubs.c
+++ b/libstdc++-v3/libmath/stubs.c
@@ -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)