diff options
Diffstat (limited to 'sysdeps/sparc')
-rw-r--r-- | sysdeps/sparc/bits/mathdef.h (renamed from sysdeps/sparc/fpu/bits/mathdef.h) | 0 | ||||
-rw-r--r-- | sysdeps/sparc/sparc32/fpu/s_fabs.c | 6 | ||||
-rw-r--r-- | sysdeps/sparc/sparc32/fpu/s_fabsl.c | 5 |
3 files changed, 10 insertions, 1 deletions
diff --git a/sysdeps/sparc/fpu/bits/mathdef.h b/sysdeps/sparc/bits/mathdef.h index c8dcc9c93f..c8dcc9c93f 100644 --- a/sysdeps/sparc/fpu/bits/mathdef.h +++ b/sysdeps/sparc/bits/mathdef.h diff --git a/sysdeps/sparc/sparc32/fpu/s_fabs.c b/sysdeps/sparc/sparc32/fpu/s_fabs.c index db5ecf2162..b883e6e862 100644 --- a/sysdeps/sparc/sparc32/fpu/s_fabs.c +++ b/sysdeps/sparc/sparc32/fpu/s_fabs.c @@ -1,5 +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 diff --git a/sysdeps/sparc/sparc32/fpu/s_fabsl.c b/sysdeps/sparc/sparc32/fpu/s_fabsl.c index 67e9f47071..3c03b92828 100644 --- a/sysdeps/sparc/sparc32/fpu/s_fabsl.c +++ b/sysdeps/sparc/sparc32/fpu/s_fabsl.c @@ -1,5 +1,8 @@ +#include <math.h> +#include <math_ldbl_opt.h> + long double __fabsl (long double x) { return __builtin_fabsl (x); } -weak_alias (__fabsl, fabsl) +long_double_symbol (libm, __fabsl, fabsl); |