diff options
author | Paul E. Murphy <murphyp@linux.vnet.ibm.com> | 2016-06-28 11:06:42 -0500 |
---|---|---|
committer | Paul E. Murphy <murphyp@linux.vnet.ibm.com> | 2016-08-19 16:47:31 -0500 |
commit | d5602cebf1ff25ef34298a52209283879609ec16 (patch) | |
tree | 6d48955e25b06314b107b9484ae008d8b1a2c374 /sysdeps | |
parent | f6d3a72eca7558e3c52cecc8484665399eeea626 (diff) | |
download | glibc-d5602cebf1ff25ef34298a52209283879609ec16.tar.gz glibc-d5602cebf1ff25ef34298a52209283879609ec16.tar.xz glibc-d5602cebf1ff25ef34298a52209283879609ec16.zip |
Convert _Complex tangent functions to generated code
This converts s_c{,a}tan{,h}{f,,l} into a single templated file c{,a}tan{,h}_template.c with the exception of alpha.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/alpha/fpu/s_catanf.c | 12 | ||||
-rw-r--r-- | sysdeps/alpha/fpu/s_catanhf.c | 12 | ||||
-rw-r--r-- | sysdeps/alpha/fpu/s_ctanf.c | 12 | ||||
-rw-r--r-- | sysdeps/alpha/fpu/s_ctanhf.c | 12 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-opt/s_catan.c | 6 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-opt/s_catanh.c | 6 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-opt/s_catanhl.c | 6 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-opt/s_catanl.c | 6 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-opt/s_ctan.c | 6 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-opt/s_ctanh.c | 6 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-opt/s_ctanhl.c | 6 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-opt/s_ctanl.c | 6 |
12 files changed, 32 insertions, 64 deletions
diff --git a/sysdeps/alpha/fpu/s_catanf.c b/sysdeps/alpha/fpu/s_catanf.c index 76c1718dff..ee2443d4a4 100644 --- a/sysdeps/alpha/fpu/s_catanf.c +++ b/sysdeps/alpha/fpu/s_catanf.c @@ -24,14 +24,18 @@ #undef __catanf #undef catanf -#define __catanf internal_catanf static _Complex float internal_catanf (_Complex float x); -#include <math/s_catanf.c> -#include "cfloat-compat.h" +#define M_DECL_FUNC(f) internal_catanf +#include <math-type-macros-float.h> -#undef __catanf +/* Disable any aliasing from base template. */ +#undef declare_mgen_alias +#define declare_mgen_alias(__to, __from) + +#include <math/s_catan_template.c> +#include "cfloat-compat.h" c1_cfloat_rettype __c1_catanf (c1_cfloat_decl (x)) diff --git a/sysdeps/alpha/fpu/s_catanhf.c b/sysdeps/alpha/fpu/s_catanhf.c index 18148ddafb..d9f2d2157f 100644 --- a/sysdeps/alpha/fpu/s_catanhf.c +++ b/sysdeps/alpha/fpu/s_catanhf.c @@ -24,14 +24,18 @@ #undef __catanhf #undef catanhf -#define __catanhf internal_catanhf static _Complex float internal_catanhf (_Complex float x); -#include <math/s_catanhf.c> -#include "cfloat-compat.h" +#define M_DECL_FUNC(f) internal_catanhf +#include <math-type-macros-float.h> -#undef __catanhf +/* Disable any aliasing from base template. */ +#undef declare_mgen_alias +#define declare_mgen_alias(__to, __from) + +#include <math/s_catanh_template.c> +#include "cfloat-compat.h" c1_cfloat_rettype __c1_catanhf (c1_cfloat_decl (x)) diff --git a/sysdeps/alpha/fpu/s_ctanf.c b/sysdeps/alpha/fpu/s_ctanf.c index ee02f31c28..cd5dd910f3 100644 --- a/sysdeps/alpha/fpu/s_ctanf.c +++ b/sysdeps/alpha/fpu/s_ctanf.c @@ -24,14 +24,18 @@ #undef __ctanf #undef ctanf -#define __ctanf internal_ctanf static _Complex float internal_ctanf (_Complex float x); -#include <math/s_ctanf.c> -#include "cfloat-compat.h" +#define M_DECL_FUNC(f) internal_ctanf +#include <math-type-macros-float.h> -#undef __ctanf +/* Disable any aliasing from base template. */ +#undef declare_mgen_alias +#define declare_mgen_alias(__to, __from) + +#include <math/s_ctan_template.c> +#include "cfloat-compat.h" c1_cfloat_rettype __c1_ctanf (c1_cfloat_decl (x)) diff --git a/sysdeps/alpha/fpu/s_ctanhf.c b/sysdeps/alpha/fpu/s_ctanhf.c index cb99279de6..359f053489 100644 --- a/sysdeps/alpha/fpu/s_ctanhf.c +++ b/sysdeps/alpha/fpu/s_ctanhf.c @@ -24,14 +24,18 @@ #undef __ctanhf #undef ctanhf -#define __ctanhf internal_ctanhf static _Complex float internal_ctanhf (_Complex float x); -#include <math/s_ctanhf.c> -#include "cfloat-compat.h" +#define M_DECL_FUNC(f) internal_ctanhf +#include <math-type-macros-float.h> -#undef __ctanhf +/* Disable any aliasing from base template. */ +#undef declare_mgen_alias +#define declare_mgen_alias(__to, __from) + +#include <math/s_ctanh_template.c> +#include "cfloat-compat.h" c1_cfloat_rettype __c1_ctanhf (c1_cfloat_decl (x)) diff --git a/sysdeps/ieee754/ldbl-opt/s_catan.c b/sysdeps/ieee754/ldbl-opt/s_catan.c deleted file mode 100644 index 19f61736d2..0000000000 --- a/sysdeps/ieee754/ldbl-opt/s_catan.c +++ /dev/null @@ -1,6 +0,0 @@ -#include <complex.h> -#include <math_ldbl_opt.h> -#include <math/s_catan.c> -#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1) -compat_symbol (libm, __catan, catanl, GLIBC_2_1); -#endif diff --git a/sysdeps/ieee754/ldbl-opt/s_catanh.c b/sysdeps/ieee754/ldbl-opt/s_catanh.c deleted file mode 100644 index cff7861444..0000000000 --- a/sysdeps/ieee754/ldbl-opt/s_catanh.c +++ /dev/null @@ -1,6 +0,0 @@ -#include <complex.h> -#include <math_ldbl_opt.h> -#include <math/s_catanh.c> -#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1) -compat_symbol (libm, __catanh, catanhl, GLIBC_2_1); -#endif diff --git a/sysdeps/ieee754/ldbl-opt/s_catanhl.c b/sysdeps/ieee754/ldbl-opt/s_catanhl.c deleted file mode 100644 index e9562825e9..0000000000 --- a/sysdeps/ieee754/ldbl-opt/s_catanhl.c +++ /dev/null @@ -1,6 +0,0 @@ -#include <complex.h> -#include <math_ldbl_opt.h> -#undef weak_alias -#define weak_alias(n,a) -#include <math/s_catanhl.c> -long_double_symbol (libm, __catanhl, catanhl); diff --git a/sysdeps/ieee754/ldbl-opt/s_catanl.c b/sysdeps/ieee754/ldbl-opt/s_catanl.c deleted file mode 100644 index ee2fdf5d6c..0000000000 --- a/sysdeps/ieee754/ldbl-opt/s_catanl.c +++ /dev/null @@ -1,6 +0,0 @@ -#include <complex.h> -#include <math_ldbl_opt.h> -#undef weak_alias -#define weak_alias(n,a) -#include <math/s_catanl.c> -long_double_symbol (libm, __catanl, catanl); diff --git a/sysdeps/ieee754/ldbl-opt/s_ctan.c b/sysdeps/ieee754/ldbl-opt/s_ctan.c deleted file mode 100644 index a6a21f9f23..0000000000 --- a/sysdeps/ieee754/ldbl-opt/s_ctan.c +++ /dev/null @@ -1,6 +0,0 @@ -#include <complex.h> -#include <math_ldbl_opt.h> -#include <math/s_ctan.c> -#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1) -compat_symbol (libm, __ctan, ctanl, GLIBC_2_1); -#endif diff --git a/sysdeps/ieee754/ldbl-opt/s_ctanh.c b/sysdeps/ieee754/ldbl-opt/s_ctanh.c deleted file mode 100644 index fd4be129f8..0000000000 --- a/sysdeps/ieee754/ldbl-opt/s_ctanh.c +++ /dev/null @@ -1,6 +0,0 @@ -#include <complex.h> -#include <math_ldbl_opt.h> -#include <math/s_ctanh.c> -#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1) -compat_symbol (libm, __ctanh, ctanhl, GLIBC_2_1); -#endif diff --git a/sysdeps/ieee754/ldbl-opt/s_ctanhl.c b/sysdeps/ieee754/ldbl-opt/s_ctanhl.c deleted file mode 100644 index f159373b39..0000000000 --- a/sysdeps/ieee754/ldbl-opt/s_ctanhl.c +++ /dev/null @@ -1,6 +0,0 @@ -#include <complex.h> -#include <math_ldbl_opt.h> -#undef weak_alias -#define weak_alias(n,a) -#include <math/s_ctanhl.c> -long_double_symbol (libm, __ctanhl, ctanhl); diff --git a/sysdeps/ieee754/ldbl-opt/s_ctanl.c b/sysdeps/ieee754/ldbl-opt/s_ctanl.c deleted file mode 100644 index 0c2d94cf49..0000000000 --- a/sysdeps/ieee754/ldbl-opt/s_ctanl.c +++ /dev/null @@ -1,6 +0,0 @@ -#include <complex.h> -#include <math_ldbl_opt.h> -#undef weak_alias -#define weak_alias(n,a) -#include <math/s_ctanl.c> -long_double_symbol (libm, __ctanl, ctanl); |