diff options
| author | Andreas Schwab <schwab@linux-m68k.org> | 2011-10-13 18:43:01 +0200 |
|---|---|---|
| committer | Andreas Schwab <schwab@linux-m68k.org> | 2011-10-13 19:10:24 +0200 |
| commit | d3d9bde5576a2fdd31c00a97a4c5522cdf1a6016 (patch) | |
| tree | a940682d2d34da480ad639d184550d2d1823c284 | |
| parent | c3beb302397b96c0d40063e7f46d8dfc8d3feeb5 (diff) | |
| download | glibc-d3d9bde5576a2fdd31c00a97a4c5522cdf1a6016.tar.xz glibc-d3d9bde5576a2fdd31c00a97a4c5522cdf1a6016.zip | |
m68k: add __*_finite aliases
43 files changed, 122 insertions, 29 deletions
diff --git a/ChangeLog.m68k b/ChangeLog.m68k index 32ccf7e4d6..9c6e72faf2 100644 --- a/ChangeLog.m68k +++ b/ChangeLog.m68k @@ -1,3 +1,48 @@ +2011-10-13 Andreas Schwab <schwab@linux-m68k.org> + + * sysdeps/m68k/m680x0/fpu/e_acos.c: Add __*_finite alias. + * sysdeps/m68k/m680x0/fpu/e_acosf.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_acosl.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_asin.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_asinl.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_asinf.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_atan2.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_atanh.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_atanhf.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_atanhl.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_cosh.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_coshf.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_coshl.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_exp10.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_exp10f.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_exp10l.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_exp2.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_exp2l.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_exp2f.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_fmod.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_fmodf.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_fmodl.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_log.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_logl.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_logf.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_log10.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_log10f.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_log10l.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_log2.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_log2f.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_log2l.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_pow.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_remainder.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_remainderl.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_remainderf.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_scalb.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_sinh.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_sinhf.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_sinhl.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_sqrt.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_sqrtf.c: Likewise. + * sysdeps/m68k/m680x0/fpu/e_sqrtl.c: Likewise. + 2011-10-09 Andreas Schwab <schwab@linux-m68k.org> * sysdeps/m68k/m680x0/s_isinfl.c: Remove. diff --git a/sysdeps/m68k/m680x0/fpu/e_acos.c b/sysdeps/m68k/m680x0/fpu/e_acos.c index c9f6c6a162..5afa8bd9c3 100644 --- a/sysdeps/m68k/m680x0/fpu/e_acos.c +++ b/sysdeps/m68k/m680x0/fpu/e_acos.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1999, 2011 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -21,10 +21,11 @@ #include "mathimpl.h" #ifndef FUNC -#define FUNC __ieee754_acos +# define FUNC __ieee754_acos +# define FUNC_FINITE __acos_finite #endif #ifndef float_type -#define float_type double +# define float_type double #endif float_type @@ -33,3 +34,6 @@ FUNC (x) { return __m81_u(FUNC)(x); } +#ifdef FUNC_FINITE +strong_alias (FUNC, FUNC_FINITE) +#endif diff --git a/sysdeps/m68k/m680x0/fpu/e_acosf.c b/sysdeps/m68k/m680x0/fpu/e_acosf.c index 90665082d3..300fff601e 100644 --- a/sysdeps/m68k/m680x0/fpu/e_acosf.c +++ b/sysdeps/m68k/m680x0/fpu/e_acosf.c @@ -1,5 +1,6 @@ #ifndef FUNC -#define FUNC __ieee754_acosf +# define FUNC __ieee754_acosf +# define FUNC_FINITE __acosf_finite #endif #define float_type float #include <e_acos.c> diff --git a/sysdeps/m68k/m680x0/fpu/e_acosl.c b/sysdeps/m68k/m680x0/fpu/e_acosl.c index e3dcd170f3..35767f4e23 100644 --- a/sysdeps/m68k/m680x0/fpu/e_acosl.c +++ b/sysdeps/m68k/m680x0/fpu/e_acosl.c @@ -1,5 +1,6 @@ #ifndef FUNC -#define FUNC __ieee754_acosl +# define FUNC __ieee754_acosl +# define FUNC_FINITE __acosl_finite #endif #define float_type long double #include <e_acos.c> diff --git a/sysdeps/m68k/m680x0/fpu/e_asin.c b/sysdeps/m68k/m680x0/fpu/e_asin.c index b6176c708a..271a1f23d2 100644 --- a/sysdeps/m68k/m680x0/fpu/e_asin.c +++ b/sysdeps/m68k/m680x0/fpu/e_asin.c @@ -1,2 +1,3 @@ #define FUNC __ieee754_asin +#define FUNC_FINITE __asin_finite #include <e_acos.c> diff --git a/sysdeps/m68k/m680x0/fpu/e_asinf.c b/sysdeps/m68k/m680x0/fpu/e_asinf.c index 05fb82670b..ece691c6fb 100644 --- a/sysdeps/m68k/m680x0/fpu/e_asinf.c +++ b/sysdeps/m68k/m680x0/fpu/e_asinf.c @@ -1,2 +1,3 @@ -#define FUNC __ieee754_asinf +#define FUNC __ieee754_asinf +#define FUNC_FINITE __asinf_finite #include <e_acosf.c> diff --git a/sysdeps/m68k/m680x0/fpu/e_asinl.c b/sysdeps/m68k/m680x0/fpu/e_asinl.c index 0dd89fb9da..0c136f30eb 100644 --- a/sysdeps/m68k/m680x0/fpu/e_asinl.c +++ b/sysdeps/m68k/m680x0/fpu/e_asinl.c @@ -1,2 +1,3 @@ #define FUNC __ieee754_asinl +#define FUNC_FINITE __asinl_finite #include <e_acosl.c> diff --git a/sysdeps/m68k/m680x0/fpu/e_atan2.c b/sysdeps/m68k/m680x0/fpu/e_atan2.c index 551b14db81..ac5982eab5 100644 --- a/sysdeps/m68k/m680x0/fpu/e_atan2.c +++ b/sysdeps/m68k/m680x0/fpu/e_atan2.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1999, 2011 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -102,3 +102,4 @@ s(__ieee754_atan2) (float_type y, float_type x) } return z; } +strong_alias (s(__ieee754_atan2), CONCATX (s (__atan2), _finite)) diff --git a/sysdeps/m68k/m680x0/fpu/e_atanh.c b/sysdeps/m68k/m680x0/fpu/e_atanh.c index 11bf430686..f5f7e7b520 100644 --- a/sysdeps/m68k/m680x0/fpu/e_atanh.c +++ b/sysdeps/m68k/m680x0/fpu/e_atanh.c @@ -1,2 +1,3 @@ -#define FUNC __ieee754_atanh +#define FUNC __ieee754_atanh +#define FUNC_FINITE __atanh_finite #include <e_acos.c> diff --git a/sysdeps/m68k/m680x0/fpu/e_atanhf.c b/sysdeps/m68k/m680x0/fpu/e_atanhf.c index 7a8f92ecf3..cb464cbb7d 100644 --- a/sysdeps/m68k/m680x0/fpu/e_atanhf.c +++ b/sysdeps/m68k/m680x0/fpu/e_atanhf.c @@ -1,2 +1,3 @@ -#define FUNC __ieee754_atanhf +#define FUNC __ieee754_atanhf +#define FUNC_FINITE __atanhf_finite #include <e_acosf.c> diff --git a/sysdeps/m68k/m680x0/fpu/e_atanhl.c b/sysdeps/m68k/m680x0/fpu/e_atanhl.c index d8975d6782..8f276f5fad 100644 --- a/sysdeps/m68k/m680x0/fpu/e_atanhl.c +++ b/sysdeps/m68k/m680x0/fpu/e_atanhl.c @@ -1,2 +1,3 @@ #define FUNC __ieee754_atanhl +#define FUNC_FINITE __atanhl_finite #include <e_acosl.c> diff --git a/sysdeps/m68k/m680x0/fpu/e_cosh.c b/sysdeps/m68k/m680x0/fpu/e_cosh.c index 93d753c519..aaba11be3a 100644 --- a/sysdeps/m68k/m680x0/fpu/e_cosh.c +++ b/sysdeps/m68k/m680x0/fpu/e_cosh.c @@ -1,2 +1,3 @@ -#define FUNC __ieee754_cosh +#define FUNC __ieee754_cosh +#define FUNC_FINITE __cosh_finite #include <e_acos.c> diff --git a/sysdeps/m68k/m680x0/fpu/e_coshf.c b/sysdeps/m68k/m680x0/fpu/e_coshf.c index 433faf17b9..0884741c5c 100644 --- a/sysdeps/m68k/m680x0/fpu/e_coshf.c +++ b/sysdeps/m68k/m680x0/fpu/e_coshf.c @@ -1,2 +1,3 @@ -#define FUNC __ieee754_coshf +#define FUNC __ieee754_coshf +#define FUNC_FINITE __coshf_finite #include <e_acosf.c> diff --git a/sysdeps/m68k/m680x0/fpu/e_coshl.c b/sysdeps/m68k/m680x0/fpu/e_coshl.c index 39144fd202..7fc9b7b91c 100644 --- a/sysdeps/m68k/m680x0/fpu/e_coshl.c +++ b/sysdeps/m68k/m680x0/fpu/e_coshl.c @@ -1,2 +1,3 @@ #define FUNC __ieee754_coshl +#define FUNC_FINITE __coshl_finite #include <e_acosl.c> diff --git a/sysdeps/m68k/m680x0/fpu/e_exp10.c b/sysdeps/m68k/m680x0/fpu/e_exp10.c index a1dd224470..e66a80599c 100644 --- a/sysdeps/m68k/m680x0/fpu/e_exp10.c +++ b/sysdeps/m68k/m680x0/fpu/e_exp10.c @@ -1,2 +1,3 @@ #define FUNC __ieee754_exp10 +#define FUNC_FINITE __exp10_finite #include <e_acos.c> diff --git a/sysdeps/m68k/m680x0/fpu/e_exp10f.c b/sysdeps/m68k/m680x0/fpu/e_exp10f.c index 1b78bc3723..7a3bdd4186 100644 --- a/sysdeps/m68k/m680x0/fpu/e_exp10f.c +++ b/sysdeps/m68k/m680x0/fpu/e_exp10f.c @@ -1,2 +1,3 @@ #define FUNC __ieee754_exp10f +#define FUNC_FINITE __exp10f_finite #include <e_acosf.c> diff --git a/sysdeps/m68k/m680x0/fpu/e_exp10l.c b/sysdeps/m68k/m680x0/fpu/e_exp10l.c index 5e901999fa..e2a6255a76 100644 --- a/sysdeps/m68k/m680x0/fpu/e_exp10l.c +++ b/sysdeps/m68k/m680x0/fpu/e_exp10l.c @@ -1,2 +1,3 @@ #define FUNC __ieee754_exp10l +#define FUNC_FINITE __exp10l_finite #include <e_acosl.c> diff --git a/sysdeps/m68k/m680x0/fpu/e_exp2.c b/sysdeps/m68k/m680x0/fpu/e_exp2.c index 24fac4fce6..35e29ae653 100644 --- a/sysdeps/m68k/m680x0/fpu/e_exp2.c +++ b/sysdeps/m68k/m680x0/fpu/e_exp2.c @@ -1,2 +1,3 @@ #define FUNC __ieee754_exp2 +#define FUNC_FINITE __exp2_finite #include <e_acos.c> diff --git a/sysdeps/m68k/m680x0/fpu/e_exp2f.c b/sysdeps/m68k/m680x0/fpu/e_exp2f.c index 593842e4e5..e57ddb5365 100644 --- a/sysdeps/m68k/m680x0/fpu/e_exp2f.c +++ b/sysdeps/m68k/m680x0/fpu/e_exp2f.c @@ -1,2 +1,3 @@ #define FUNC __ieee754_exp2f +#define FUNC_FINITE __exp2f_finite #include <e_acosf.c> diff --git a/sysdeps/m68k/m680x0/fpu/e_exp2l.c b/sysdeps/m68k/m680x0/fpu/e_exp2l.c index 0ab2a428c0..c5854ae427 100644 --- a/sysdeps/m68k/m680x0/fpu/e_exp2l.c +++ b/sysdeps/m68k/m680x0/fpu/e_exp2l.c @@ -1,2 +1,3 @@ #define FUNC __ieee754_exp2l +#define FUNC_FINITE __exp2l_finite #include <e_acosl.c> diff --git a/sysdeps/m68k/m680x0/fpu/e_fmod.c b/sysdeps/m68k/m680x0/fpu/e_fmod.c index bd229ae4b0..293d7214d3 100644 --- a/sysdeps/m68k/m680x0/fpu/e_fmod.c +++ b/sysdeps/m68k/m680x0/fpu/e_fmod.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1999, 2011 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -21,10 +21,11 @@ #include "mathimpl.h" #ifndef FUNC -#define FUNC __ieee754_fmod +# define FUNC __ieee754_fmod +# define FUNC_FINITE __fmod_finite #endif #ifndef float_type -#define float_type double +# define float_type double #endif float_type @@ -34,3 +35,6 @@ FUNC (x, y) { return __m81_u(FUNC)(x, y); } +#ifdef FUNC_FINITE +strong_alias (FUNC, FUNC_FINITE) +#endif diff --git a/sysdeps/m68k/m680x0/fpu/e_fmodf.c b/sysdeps/m68k/m680x0/fpu/e_fmodf.c index 88c350ce9e..38995c3768 100644 --- a/sysdeps/m68k/m680x0/fpu/e_fmodf.c +++ b/sysdeps/m68k/m680x0/fpu/e_fmodf.c @@ -1,5 +1,6 @@ #ifndef FUNC -#define FUNC __ieee754_fmodf +# define FUNC __ieee754_fmodf +# define FUNC_FINITE __fmodf_finite #endif #define float_type float #include <e_fmod.c> diff --git a/sysdeps/m68k/m680x0/fpu/e_fmodl.c b/sysdeps/m68k/m680x0/fpu/e_fmodl.c index a46f19ea9d..8d793b2de7 100644 --- a/sysdeps/m68k/m680x0/fpu/e_fmodl.c +++ b/sysdeps/m68k/m680x0/fpu/e_fmodl.c @@ -1,5 +1,6 @@ #ifndef FUNC -#define FUNC __ieee754_fmodl +# define FUNC __ieee754_fmodl +# define FUNC_FINITE __fmodl_finite #endif #define float_type long double #include <e_fmod.c> |
