]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Move w_lgamma_r to libm-compat-calls-auto
authorGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Wed, 21 Dec 2016 12:20:08 +0000 (10:20 -0200)
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Wed, 8 Feb 2017 19:36:09 +0000 (17:36 -0200)
This patch adds the suffix "_compat" to lgamma_r wrappers and make
some adjustments to #includes and Makefiles.  This is a step towards
deprecation of wrappers that use _LIB_VERSION / matherr /
__kernel_standard functionality.

Tested for powerpc64le, s390, and x86_64.

* math/Makefile (libm-calls): Move w_lgammaF_r...
(libm-compat-calls-auto): Here.

* math/w_lgamma_r.c: Add suffix "_compat" to filename.
* math/w_lgammaf_r.c: Likewise.
* math/w_lgammal_r.c: Likewise.
* sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
* sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
* sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.

* math/w_lgamma_r_compat.c: New file, copied from above.
* math/w_lgammaf_r_compat.c: Likewise.
* math/w_lgammal_r_compat.c: Likewise.
* sysdeps/ia64/fpu/w_lgamma_r_compat.c: Likewise.
* sysdeps/ia64/fpu/w_lgammaf_r_compat.c: Likewise.
* sysdeps/ia64/fpu/w_lgammal_r_compat.c: Likewise.

* sysdeps/ieee754/ldbl-opt/w_lgamma_r.c: Add suffix "_compat"
to filename.
* sysdeps/ieee754/ldbl-opt/w_lgammal_r.c: Likewise.

* sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: New file
copied from above and adjusted for the new filenames.
* sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.

ChangeLog
math/Makefile
math/w_lgamma_r_compat.c [moved from math/w_lgamma_r.c with 100% similarity]
math/w_lgammaf_r_compat.c [moved from math/w_lgammaf_r.c with 100% similarity]
math/w_lgammal_r_compat.c [moved from math/w_lgammal_r.c with 100% similarity]
sysdeps/ia64/fpu/w_lgamma_r_compat.c [moved from sysdeps/ia64/fpu/w_lgamma_r.c with 100% similarity]
sysdeps/ia64/fpu/w_lgammaf_r_compat.c [moved from sysdeps/ia64/fpu/w_lgammaf_r.c with 100% similarity]
sysdeps/ia64/fpu/w_lgammal_r_compat.c [moved from sysdeps/ia64/fpu/w_lgammal_r.c with 100% similarity]
sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c [moved from sysdeps/ieee754/ldbl-opt/w_lgamma_r.c with 78% similarity]
sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c [moved from sysdeps/ieee754/ldbl-opt/w_lgammal_r.c with 76% similarity]

index e2fe0d752da60c758e1bc4983a7cd63cae80ec1b..eb92a66a9de202ff64be29a5333c769fa5163a7e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,30 @@
+2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
+
+       * math/Makefile (libm-calls): Move w_lgammaF_r...
+       (libm-compat-calls-auto): Here.
+
+       * math/w_lgamma_r.c: Add suffix "_compat" to filename.
+       * math/w_lgammaf_r.c: Likewise.
+       * math/w_lgammal_r.c: Likewise.
+       * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
+       * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
+       * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
+
+       * math/w_lgamma_r_compat.c: New file, copied from above.
+       * math/w_lgammaf_r_compat.c: Likewise.
+       * math/w_lgammal_r_compat.c: Likewise.
+       * sysdeps/ia64/fpu/w_lgamma_r_compat.c: Likewise.
+       * sysdeps/ia64/fpu/w_lgammaf_r_compat.c: Likewise.
+       * sysdeps/ia64/fpu/w_lgammal_r_compat.c: Likewise.
+
+       * sysdeps/ieee754/ldbl-opt/w_lgamma_r.c: Add suffix "_compat"
+       to filename.
+       * sysdeps/ieee754/ldbl-opt/w_lgammal_r.c: Likewise.
+
+       * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: New file
+       copied from above and adjusted for the new filenames.
+       * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
+
 2017-02-08  Yury Norov  <ynorov@caviumnetworks.com>
 
        * sysdeps/unix/sysv/linux/aarch64/sysdep.h: use PTR_REG() for offset
index 9edea26c0ebf9d916c4e5a0117a9ad053c8e0b61..7a456da7a2b3d8f309c3e72fc0cb286bd8329f16 100644 (file)
@@ -67,7 +67,7 @@ libm-calls =                                                            \
        s_nextafterF s_nexttowardF s_rintF s_scalblnF                     \
        s_significandF s_sinF s_tanF s_tanhF                              \
        w_expF                                                            \
-       w_lgammaF w_lgammaF_r                                             \
+       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           \
@@ -83,7 +83,8 @@ libm-compat-calls-auto =                                              \
        w_fmodF_compat w_hypotF_compat w_j0F_compat w_j1F_compat        \
        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_sinhF_compat w_sqrtF_compat w_tgammaF_compat                  \
+       w_lgammaF_r_compat
 
 libm-compat-calls-ldouble-yes = w_lgamma_compatl k_standardl
 libm-compat-calls = w_lgamma_compatf w_lgamma_compat k_standard k_standardf \
similarity index 100%
rename from math/w_lgamma_r.c
rename to math/w_lgamma_r_compat.c
similarity index 100%
rename from math/w_lgammaf_r.c
rename to math/w_lgammaf_r_compat.c
similarity index 100%
rename from math/w_lgammal_r.c
rename to math/w_lgammal_r_compat.c
similarity index 78%
rename from sysdeps/ieee754/ldbl-opt/w_lgamma_r.c
rename to sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c
index eeab6a6b475ad5761316e26e84972d3472e597ab..673954cd1adb01960821b332a0fd4075bae16645 100644 (file)
@@ -1,5 +1,5 @@
 #include <math_ldbl_opt.h>
-#include <math/w_lgamma_r.c>
+#include <math/w_lgamma_r_compat.c>
 #if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
 compat_symbol (libm, __lgamma_r, lgammal_r, GLIBC_2_0);
 #endif
similarity index 76%
rename from sysdeps/ieee754/ldbl-opt/w_lgammal_r.c
rename to sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c
index 25459758d755ed17e26a78854a15aface650a0ee..6fdf2bba87aade38ad855215f039084c36f2630b 100644 (file)
@@ -1,5 +1,5 @@
 #include <math_ldbl_opt.h>
 #undef weak_alias
 #define weak_alias(n,a)
-#include <math/w_lgammal_r.c>
+#include <math/w_lgammal_r_compat.c>
 long_double_symbol (libm, __lgammal_r, lgammal_r);