diff options
author | Joseph Myers <joseph@codesourcery.com> | 2018-09-28 21:53:33 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2018-09-28 21:53:33 +0000 |
commit | c52944e8ccb15158b7e44cbb75fb46d81400d75c (patch) | |
tree | 7e8b59af526702e0fb7a4b13f2150b83c33f466c /sysdeps/ieee754 | |
parent | 7b1f9406761331cf35fe521fbdb592beecf68a2c (diff) | |
download | glibc-c52944e8ccb15158b7e44cbb75fb46d81400d75c.tar.gz glibc-c52944e8ccb15158b7e44cbb75fb46d81400d75c.tar.xz glibc-c52944e8ccb15158b7e44cbb75fb46d81400d75c.zip |
Remove unnecessary math_private.h includes.
After my changes to move various macros, inlines and other content from math_private.h to more specific headers, many files including math_private.h no longer need to do so. Furthermore, since the optimized inlines of various functions have been moved to include/fenv.h or replaced by use of function names GCC inlines automatically, a missing math_private.h include where one is appropriate will reliably cause a build failure rather than possibly causing code to be less well optimized while still building successfully. Thus, this patch removes includes of math_private.h that are now unnecessary. In the case of two RISC-V files, the include is replaced by one of stdbool.h because the files in question were relying on math_private.h to get a definition of bool. Tested for x86_64 and x86, and with build-many-glibcs.py. * math/fromfp.h: Do not include <math_private.h>. * math/s_cacosh_template.c: Likewise. * math/s_casin_template.c: Likewise. * math/s_casinh_template.c: Likewise. * math/s_ccos_template.c: Likewise. * math/s_cproj_template.c: Likewise. * math/s_fdim_template.c: Likewise. * math/s_fmaxmag_template.c: Likewise. * math/s_fminmag_template.c: Likewise. * math/s_iseqsig_template.c: Likewise. * math/s_ldexp_template.c: Likewise. * math/s_nextdown_template.c: Likewise. * math/w_log1p_template.c: Likewise. * math/w_scalbln_template.c: Likewise. * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise. * sysdeps/aarch64/fpu/fesetround.c: Likewise. * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise. * sysdeps/aarch64/fpu/ftestexcept.c: Likewise. * sysdeps/aarch64/fpu/s_llrint.c: Likewise. * sysdeps/aarch64/fpu/s_llrintf.c: Likewise. * sysdeps/aarch64/fpu/s_lrint.c: Likewise. * sysdeps/aarch64/fpu/s_lrintf.c: Likewise. * sysdeps/i386/fpu/s_atanl.c: Likewise. * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise. * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise. * sysdeps/i386/fpu/s_fdim.c: Likewise. * sysdeps/i386/fpu/s_logbl.c: Likewise. * sysdeps/i386/fpu/s_rintl.c: Likewise. * sysdeps/i386/fpu/s_significandl.c: Likewise. * sysdeps/ia64/fpu/s_matherrf.c: Likewise. * sysdeps/ia64/fpu/s_matherrl.c: Likewise. * sysdeps/ieee754/dbl-64/s_atan.c: Likewise. * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise. * sysdeps/ieee754/dbl-64/s_fma.c: Likewise. * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise. * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise. * sysdeps/ieee754/k_standardf.c: Likewise. * sysdeps/ieee754/k_standardl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise. * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise. * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise. * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise. * sysdeps/ieee754/s_signgam.c: Likewise. * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise. * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise. * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise. * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise. * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise. * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise. * sysdeps/riscv/rv64/rvd/s_round.c: Likewise. * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise. * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise. * sysdeps/riscv/rvd/s_finite.c: Likewise. * sysdeps/riscv/rvd/s_fmax.c: Likewise. * sysdeps/riscv/rvd/s_fmin.c: Likewise. * sysdeps/riscv/rvd/s_fpclassify.c: Likewise. * sysdeps/riscv/rvd/s_isinf.c: Likewise. * sysdeps/riscv/rvd/s_isnan.c: Likewise. * sysdeps/riscv/rvd/s_issignaling.c: Likewise. * sysdeps/riscv/rvf/fegetround.c: Likewise. * sysdeps/riscv/rvf/feholdexcpt.c: Likewise. * sysdeps/riscv/rvf/fesetenv.c: Likewise. * sysdeps/riscv/rvf/fesetround.c: Likewise. * sysdeps/riscv/rvf/feupdateenv.c: Likewise. * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise. * sysdeps/riscv/rvf/ftestexcept.c: Likewise. * sysdeps/riscv/rvf/s_ceilf.c: Likewise. * sysdeps/riscv/rvf/s_finitef.c: Likewise. * sysdeps/riscv/rvf/s_floorf.c: Likewise. * sysdeps/riscv/rvf/s_fmaxf.c: Likewise. * sysdeps/riscv/rvf/s_fminf.c: Likewise. * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise. * sysdeps/riscv/rvf/s_isinff.c: Likewise. * sysdeps/riscv/rvf/s_isnanf.c: Likewise. * sysdeps/riscv/rvf/s_issignalingf.c: Likewise. * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise. * sysdeps/riscv/rvf/s_roundevenf.c: Likewise. * sysdeps/riscv/rvf/s_roundf.c: Likewise. * sysdeps/riscv/rvf/s_truncf.c: Likewise. * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of <math_private.h>. * sysdeps/riscv/rvf/s_rintf.c: Likewise.
Diffstat (limited to 'sysdeps/ieee754')
-rw-r--r-- | sysdeps/ieee754/dbl-64/s_atan.c | 1 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/s_cbrt.c | 1 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/s_fma.c | 1 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/s_fmaf.c | 1 | ||||
-rw-r--r-- | sysdeps/ieee754/flt-32/s_cbrtf.c | 1 | ||||
-rw-r--r-- | sysdeps/ieee754/k_standardf.c | 1 | ||||
-rw-r--r-- | sysdeps/ieee754/k_standardl.c | 1 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-128ibm/s_copysignl.c | 1 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-64-128/s_finitel.c | 1 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c | 1 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-64-128/s_isinfl.c | 1 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-64-128/s_isnanl.c | 1 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-64-128/s_signbitl.c | 1 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-96/s_cbrtl.c | 1 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-96/s_fma.c | 1 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-96/s_fmal.c | 1 | ||||
-rw-r--r-- | sysdeps/ieee754/s_signgam.c | 1 |
17 files changed, 0 insertions, 17 deletions
diff --git a/sysdeps/ieee754/dbl-64/s_atan.c b/sysdeps/ieee754/dbl-64/s_atan.c index e346581fb6..85bbc73d4c 100644 --- a/sysdeps/ieee754/dbl-64/s_atan.c +++ b/sysdeps/ieee754/dbl-64/s_atan.c @@ -45,7 +45,6 @@ #include <float.h> #include <libm-alias-double.h> #include <math.h> -#include <math_private.h> #include <fenv_private.h> #include <math-underflow.h> #include <stap-probe.h> diff --git a/sysdeps/ieee754/dbl-64/s_cbrt.c b/sysdeps/ieee754/dbl-64/s_cbrt.c index 6cd55dc0d6..6d69da525b 100644 --- a/sysdeps/ieee754/dbl-64/s_cbrt.c +++ b/sysdeps/ieee754/dbl-64/s_cbrt.c @@ -19,7 +19,6 @@ <http://www.gnu.org/licenses/>. */ #include <math.h> -#include <math_private.h> #include <libm-alias-double.h> diff --git a/sysdeps/ieee754/dbl-64/s_fma.c b/sysdeps/ieee754/dbl-64/s_fma.c index 3f8976394d..aba92cfc91 100644 --- a/sysdeps/ieee754/dbl-64/s_fma.c +++ b/sysdeps/ieee754/dbl-64/s_fma.c @@ -22,7 +22,6 @@ #include <fenv.h> #include <ieee754.h> #include <math-barriers.h> -#include <math_private.h> #include <fenv_private.h> #include <libm-alias-double.h> #include <tininess.h> diff --git a/sysdeps/ieee754/dbl-64/s_fmaf.c b/sysdeps/ieee754/dbl-64/s_fmaf.c index 630798c13e..cc657bb373 100644 --- a/sysdeps/ieee754/dbl-64/s_fmaf.c +++ b/sysdeps/ieee754/dbl-64/s_fmaf.c @@ -21,7 +21,6 @@ #include <fenv.h> #include <ieee754.h> #include <math-barriers.h> -#include <math_private.h> #include <fenv_private.h> #include <libm-alias-float.h> diff --git a/sysdeps/ieee754/flt-32/s_cbrtf.c b/sysdeps/ieee754/flt-32/s_cbrtf.c index afa1454399..93dec73737 100644 --- a/sysdeps/ieee754/flt-32/s_cbrtf.c +++ b/sysdeps/ieee754/flt-32/s_cbrtf.c @@ -19,7 +19,6 @@ <http://www.gnu.org/licenses/>. */ #include <math.h> -#include <math_private.h> #include <libm-alias-float.h> diff --git a/sysdeps/ieee754/k_standardf.c b/sysdeps/ieee754/k_standardf.c index b790ad266d..6d78f041d5 100644 --- a/sysdeps/ieee754/k_standardf.c +++ b/sysdeps/ieee754/k_standardf.c @@ -17,7 +17,6 @@ <http://www.gnu.org/licenses/>. */ #include <math.h> -#include <math_private.h> #include <math-svid-compat.h> diff --git a/sysdeps/ieee754/k_standardl.c b/sysdeps/ieee754/k_standardl.c index 618abb28f4..e67a2bee02 100644 --- a/sysdeps/ieee754/k_standardl.c +++ b/sysdeps/ieee754/k_standardl.c @@ -32,7 +32,6 @@ #include <math.h> #include <math-barriers.h> -#include <math_private.h> #include <math-svid-compat.h> #include <fenv.h> #include <float.h> diff --git a/sysdeps/ieee754/ldbl-128ibm/s_copysignl.c b/sysdeps/ieee754/ldbl-128ibm/s_copysignl.c index 4214853fed..9dbd9b86fa 100644 --- a/sysdeps/ieee754/ldbl-128ibm/s_copysignl.c +++ b/sysdeps/ieee754/ldbl-128ibm/s_copysignl.c @@ -25,7 +25,6 @@ static char rcsid[] = "$NetBSD: $"; #define NO_MATH_REDIRECT #include <math.h> -#include <math_private.h> #include <math_ldbl_opt.h> long double __copysignl(long double x, long double y) diff --git a/sysdeps/ieee754/ldbl-64-128/s_finitel.c b/sysdeps/ieee754/ldbl-64-128/s_finitel.c index 5a16e6a277..5b9a0f0248 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_finitel.c +++ b/sysdeps/ieee754/ldbl-64-128/s_finitel.c @@ -1,5 +1,4 @@ #include <math.h> -#include <math_private.h> #include <math_ldbl_opt.h> #undef weak_alias #define weak_alias(n,a) diff --git a/sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c b/sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c index a14cea4001..13cf81511c 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c @@ -1,5 +1,4 @@ #include <math.h> -#include <math_private.h> #include <math_ldbl_opt.h> #undef weak_alias #define weak_alias(n,a) diff --git a/sysdeps/ieee754/ldbl-64-128/s_isinfl.c b/sysdeps/ieee754/ldbl-64-128/s_isinfl.c index 94d0b06277..58d8d3ab55 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_isinfl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_isinfl.c @@ -1,5 +1,4 @@ #include <math.h> -#include <math_private.h> #include <math_ldbl_opt.h> #if !IS_IN (libm) # undef weak_alias diff --git a/sysdeps/ieee754/ldbl-64-128/s_isnanl.c b/sysdeps/ieee754/ldbl-64-128/s_isnanl.c index 9a7a29770c..4783439834 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_isnanl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_isnanl.c @@ -1,5 +1,4 @@ #include <math.h> -#include <math_private.h> #include <math_ldbl_opt.h> #if !IS_IN (libm) # undef weak_alias diff --git a/sysdeps/ieee754/ldbl-64-128/s_signbitl.c b/sysdeps/ieee754/ldbl-64-128/s_signbitl.c index 39e0c34b6c..76cd0af347 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_signbitl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_signbitl.c @@ -1,5 +1,4 @@ #include <math.h> -#include <math_private.h> #include <math_ldbl_opt.h> #undef weak_alias #define weak_alias(n,a) diff --git a/sysdeps/ieee754/ldbl-96/s_cbrtl.c b/sysdeps/ieee754/ldbl-96/s_cbrtl.c index 67cf86dd7a..817de5253f 100644 --- a/sysdeps/ieee754/ldbl-96/s_cbrtl.c +++ b/sysdeps/ieee754/ldbl-96/s_cbrtl.c @@ -19,7 +19,6 @@ <http://www.gnu.org/licenses/>. */ #include <math.h> -#include <math_private.h> #include <libm-alias-ldouble.h> diff --git a/sysdeps/ieee754/ldbl-96/s_fma.c b/sysdeps/ieee754/ldbl-96/s_fma.c index 986879cda5..6f94c5e097 100644 --- a/sysdeps/ieee754/ldbl-96/s_fma.c +++ b/sysdeps/ieee754/ldbl-96/s_fma.c @@ -22,7 +22,6 @@ #include <fenv.h> #include <ieee754.h> #include <math-barriers.h> -#include <math_private.h> #include <libm-alias-double.h> /* This implementation uses rounding to odd to avoid problems with diff --git a/sysdeps/ieee754/ldbl-96/s_fmal.c b/sysdeps/ieee754/ldbl-96/s_fmal.c index 0b261fd17a..4c8d891311 100644 --- a/sysdeps/ieee754/ldbl-96/s_fmal.c +++ b/sysdeps/ieee754/ldbl-96/s_fmal.c @@ -22,7 +22,6 @@ #include <fenv.h> #include <ieee754.h> #include <math-barriers.h> -#include <math_private.h> #include <libm-alias-ldouble.h> #include <tininess.h> diff --git a/sysdeps/ieee754/s_signgam.c b/sysdeps/ieee754/s_signgam.c index 9af3a75f1e..32116f3cd4 100644 --- a/sysdeps/ieee754/s_signgam.c +++ b/sysdeps/ieee754/s_signgam.c @@ -1,4 +1,3 @@ #include <math.h> -#include <math_private.h> int __signgam = 0; weak_alias (__signgam, signgam) |