From 163f65e28c22d60a72726b8f07ed5756da05c929 Mon Sep 17 00:00:00 2001 From: "Gabriel F. T. Gomes" Date: Wed, 21 Dec 2016 09:33:32 -0200 Subject: Move w_lgamma to libm-compat-calls-auto This patch adds the suffix "_compat2" to the wrappers for lgamma, which use _LIB_VERSION / matherr / __kernel_standard functionality. The suffix "_compat2" is used because the suffix "_compat" is already used. Tested for powerpc64le, s390, and x86_64. * math/Makefile (libm-calls): Move w_lgammaF... (libm-compat-calls-auto): Here. * math/w_lgamma.c: Add suffix "_compat2" to filename. * math/w_lgammaf.c: Likewise. * math/w_lgammal.c: Likewise. * math/w_lgamma_compat2.c: New file, copied from above. * math/w_lgammaf_compat2.c: Likewise. * math/w_lgammal_compat2.c: Likewise. --- ChangeLog | 13 +++++++++++++ math/Makefile | 3 +-- math/w_lgamma.c | 2 -- math/w_lgamma_compat2.c | 2 ++ math/w_lgammaf.c | 2 -- math/w_lgammaf_compat2.c | 2 ++ math/w_lgammal.c | 2 -- math/w_lgammal_compat2.c | 2 ++ 8 files changed, 20 insertions(+), 8 deletions(-) delete mode 100644 math/w_lgamma.c create mode 100644 math/w_lgamma_compat2.c delete mode 100644 math/w_lgammaf.c create mode 100644 math/w_lgammaf_compat2.c delete mode 100644 math/w_lgammal.c create mode 100644 math/w_lgammal_compat2.c diff --git a/ChangeLog b/ChangeLog index eb92a66..f755cd3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,18 @@ 2017-02-08 Gabriel F. T. Gomes + * math/Makefile (libm-calls): Move w_lgammaF... + (libm-compat-calls-auto): Here. + + * math/w_lgamma.c: Add suffix "_compat2" to filename. + * math/w_lgammaf.c: Likewise. + * math/w_lgammal.c: Likewise. + + * math/w_lgamma_compat2.c: New file, copied from above. + * math/w_lgammaf_compat2.c: Likewise. + * math/w_lgammal_compat2.c: Likewise. + +2017-02-08 Gabriel F. T. Gomes + * math/Makefile (libm-calls): Move w_lgammaF_r... (libm-compat-calls-auto): Here. diff --git a/math/Makefile b/math/Makefile index 7a456da..fbbef49 100644 --- a/math/Makefile +++ b/math/Makefile @@ -67,7 +67,6 @@ libm-calls = \ s_nextafterF s_nexttowardF s_rintF s_scalblnF \ s_significandF s_sinF s_tanF s_tanhF \ w_expF \ - w_lgammaF \ s_fpclassifyF s_truncF \ s_remquoF e_log2F e_exp2F s_roundF s_nearbyintF s_sincosF \ s_fmaF s_lrintF s_llrintF s_lroundF s_llroundF e_exp10F \ @@ -84,7 +83,7 @@ libm-compat-calls-auto = \ w_jnF_compat w_log2F_compat w_log10F_compat w_logF_compat \ w_powF_compat w_remainderF_compat w_scalbF_compat \ w_sinhF_compat w_sqrtF_compat w_tgammaF_compat \ - w_lgammaF_r_compat + w_lgammaF_r_compat w_lgammaF_compat2 libm-compat-calls-ldouble-yes = w_lgamma_compatl k_standardl libm-compat-calls = w_lgamma_compatf w_lgamma_compat k_standard k_standardf \ diff --git a/math/w_lgamma.c b/math/w_lgamma.c deleted file mode 100644 index 8bb33e0..0000000 --- a/math/w_lgamma.c +++ /dev/null @@ -1,2 +0,0 @@ -#define USE_AS_COMPAT 0 -#include diff --git a/math/w_lgamma_compat2.c b/math/w_lgamma_compat2.c new file mode 100644 index 0000000..8bb33e0 --- /dev/null +++ b/math/w_lgamma_compat2.c @@ -0,0 +1,2 @@ +#define USE_AS_COMPAT 0 +#include diff --git a/math/w_lgammaf.c b/math/w_lgammaf.c deleted file mode 100644 index 5fc4022..0000000 --- a/math/w_lgammaf.c +++ /dev/null @@ -1,2 +0,0 @@ -#define USE_AS_COMPAT 0 -#include diff --git a/math/w_lgammaf_compat2.c b/math/w_lgammaf_compat2.c new file mode 100644 index 0000000..5fc4022 --- /dev/null +++ b/math/w_lgammaf_compat2.c @@ -0,0 +1,2 @@ +#define USE_AS_COMPAT 0 +#include diff --git a/math/w_lgammal.c b/math/w_lgammal.c deleted file mode 100644 index 78dd9c5..0000000 --- a/math/w_lgammal.c +++ /dev/null @@ -1,2 +0,0 @@ -#define USE_AS_COMPAT 0 -#include diff --git a/math/w_lgammal_compat2.c b/math/w_lgammal_compat2.c new file mode 100644 index 0000000..78dd9c5 --- /dev/null +++ b/math/w_lgammal_compat2.c @@ -0,0 +1,2 @@ +#define USE_AS_COMPAT 0 +#include -- cgit v1.1