about summary refs log tree commit diff
path: root/sysdeps/sparc/sparc32/fpu/s_fabs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc/sparc32/fpu/s_fabs.c')
-rw-r--r--sysdeps/sparc/sparc32/fpu/s_fabs.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysdeps/sparc/sparc32/fpu/s_fabs.c b/sysdeps/sparc/sparc32/fpu/s_fabs.c
new file mode 100644
index 0000000000..b883e6e862
--- /dev/null
+++ b/sysdeps/sparc/sparc32/fpu/s_fabs.c
@@ -0,0 +1,11 @@
+#include <math.h>
+#include <math_ldbl_opt.h>
+
+double __fabs (double x)
+{
+  return __builtin_fabs (x);
+}
+weak_alias (__fabs, fabs)
+#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
+compat_symbol (libm, __fabs, fabsl, GLIBC_2_0);
+#endif