]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Move fenv.h soft-float inlines from fenv_private.h to include/fenv.h.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 4 Sep 2018 19:52:06 +0000 (19:52 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 4 Sep 2018 19:52:06 +0000 (19:52 +0000)
<fenv_private.h> has inline versions of various <fenv.h> functions,
and their __fe* variants, for systems (generally soft-float) without
support for floating-point exceptions, rounding modes or both.

Having these inlines in a separate header introduces a risk of a
source file including <fenv.h> and compiling OK on x86_64, but failing
to compile (because the feraiseexcept inline is actually a macro that
discards its argument, to avoid the need for #ifdef FE_INVALID
conditionals), or not being properly optimized, on systems without the
exceptions and rounding modes support (when these inlines were in
math_private.h, we had a few cases where this broke the build because
there was no obvious reason for a file to need math_private.h and it
didn't need that header on x86_64).  By moving those inlines to
include/fenv.h, this risk can be avoided, and fenv_private.h becomes
more clearly defined as specifically the header for the internal
libc_fe* and SET_RESTORE_ROUND* interfaces.

This patch makes that move, removing fenv_private.h includes that are
no longer needed (or replacing them by fenv.h includes in a few cases
that didn't already have such an include).

Tested for x86_64 and x86, and tested with build-many-glibcs.py that
installed stripped shared libraries are unchanged by the patch.

* sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
code ....
[!FE_HAVE_ROUNDING_MODES]: And this code ....
* include/fenv.h [!_ISOMAC]: ... to here.
* math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
(feraiseexcept): Likewise.
* math/fromfp.h: Do not include <fenv_private.h>.
* math/s_cexp_template.c: Likewise.
* math/s_csin_template.c: Likewise.
* math/s_csinh_template.c: Likewise.
* math/s_ctan_template.c: Likewise.
* math/s_ctanh_template.c: Likewise.
* math/s_iseqsig_template.c: Likewise.
* math/w_acos_compat.c: Likewise.
* math/w_acosf_compat.c: Likewise.
* math/w_acosl_compat.c: Likewise.
* math/w_asin_compat.c: Likewise.
* math/w_asinf_compat.c: Likewise.
* math/w_asinl_compat.c: Likewise.
* math/w_j0_compat.c: Likewise.
* math/w_j0f_compat.c: Likewise.
* math/w_j0l_compat.c: Likewise.
* math/w_j1_compat.c: Likewise.
* math/w_j1f_compat.c: Likewise.
* math/w_j1l_compat.c: Likewise.
* math/w_jn_compat.c: Likewise.
* math/w_jnf_compat.c: Likewise.
* math/w_log10_compat.c: Likewise.
* math/w_log10f_compat.c: Likewise.
* math/w_log10l_compat.c: Likewise.
* math/w_log2_compat.c: Likewise.
* math/w_log2f_compat.c: Likewise.
* math/w_log2l_compat.c: Likewise.
* math/w_log_compat.c: Likewise.
* math/w_logf_compat.c: Likewise.
* math/w_logl_compat.c: Likewise.
* sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
* sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
* sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
* sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
* sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
* sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
* sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
* sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
* sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
* sysdeps/ieee754/k_standardl.c: Likewise.
* sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
* sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
* sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
* sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
* sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
* sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
* sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
* sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
* sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
* sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
* sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
* sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
* sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
* sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
* sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
* sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
* sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
* math/w_ilogb_template.c: Include <fenv.h> instead of
<fenv_private.h>.
* math/w_llogb_template.c: Likewise.
* sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
* sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.

65 files changed:
ChangeLog
include/fenv.h
math/fraiseexcpt.c
math/fromfp.h
math/s_cexp_template.c
math/s_csin_template.c
math/s_csinh_template.c
math/s_ctan_template.c
math/s_ctanh_template.c
math/s_iseqsig_template.c
math/w_acos_compat.c
math/w_acosf_compat.c
math/w_acosl_compat.c
math/w_asin_compat.c
math/w_asinf_compat.c
math/w_asinl_compat.c
math/w_ilogb_template.c
math/w_j0_compat.c
math/w_j0f_compat.c
math/w_j0l_compat.c
math/w_j1_compat.c
math/w_j1f_compat.c
math/w_j1l_compat.c
math/w_jn_compat.c
math/w_jnf_compat.c
math/w_llogb_template.c
math/w_log10_compat.c
math/w_log10f_compat.c
math/w_log10l_compat.c
math/w_log2_compat.c
math/w_log2f_compat.c
math/w_log2l_compat.c
math/w_log_compat.c
math/w_logf_compat.c
math/w_logl_compat.c
sysdeps/generic/fenv_private.h
sysdeps/ieee754/dbl-64/s_llrint.c
sysdeps/ieee754/dbl-64/s_llround.c
sysdeps/ieee754/dbl-64/s_lrint.c
sysdeps/ieee754/dbl-64/s_lround.c
sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c
sysdeps/ieee754/flt-32/s_llrintf.c
sysdeps/ieee754/flt-32/s_llroundf.c
sysdeps/ieee754/flt-32/s_lrintf.c
sysdeps/ieee754/flt-32/s_lroundf.c
sysdeps/ieee754/k_standardl.c
sysdeps/ieee754/ldbl-128/e_expl.c
sysdeps/ieee754/ldbl-128/s_fmal.c
sysdeps/ieee754/ldbl-128/s_llrintl.c
sysdeps/ieee754/ldbl-128/s_llroundl.c
sysdeps/ieee754/ldbl-128/s_lrintl.c
sysdeps/ieee754/ldbl-128/s_lroundl.c
sysdeps/ieee754/ldbl-128/s_nearbyintl.c
sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
sysdeps/ieee754/ldbl-96/s_fma.c
sysdeps/ieee754/ldbl-96/s_fmal.c
sysdeps/ieee754/ldbl-96/s_llrintl.c
sysdeps/ieee754/ldbl-96/s_llroundl.c
sysdeps/ieee754/ldbl-96/s_lrintl.c
sysdeps/ieee754/ldbl-96/s_lroundl.c
sysdeps/powerpc/fpu/e_sqrt.c
sysdeps/powerpc/fpu/e_sqrtf.c

index 5ac0551145f4670cbecee0c6abecb93c4cda3e17..70ebfcea18a134e98a97332742f44cbba9a2df75 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,74 @@
+2018-09-04  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
+       code ....
+       [!FE_HAVE_ROUNDING_MODES]: And this code ....
+       * include/fenv.h [!_ISOMAC]: ... to here.
+       * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
+       (feraiseexcept): Likewise.
+       * math/fromfp.h: Do not include <fenv_private.h>.
+       * math/s_cexp_template.c: Likewise.
+       * math/s_csin_template.c: Likewise.
+       * math/s_csinh_template.c: Likewise.
+       * math/s_ctan_template.c: Likewise.
+       * math/s_ctanh_template.c: Likewise.
+       * math/s_iseqsig_template.c: Likewise.
+       * math/w_acos_compat.c: Likewise.
+       * math/w_acosf_compat.c: Likewise.
+       * math/w_acosl_compat.c: Likewise.
+       * math/w_asin_compat.c: Likewise.
+       * math/w_asinf_compat.c: Likewise.
+       * math/w_asinl_compat.c: Likewise.
+       * math/w_j0_compat.c: Likewise.
+       * math/w_j0f_compat.c: Likewise.
+       * math/w_j0l_compat.c: Likewise.
+       * math/w_j1_compat.c: Likewise.
+       * math/w_j1f_compat.c: Likewise.
+       * math/w_j1l_compat.c: Likewise.
+       * math/w_jn_compat.c: Likewise.
+       * math/w_jnf_compat.c: Likewise.
+       * math/w_log10_compat.c: Likewise.
+       * math/w_log10f_compat.c: Likewise.
+       * math/w_log10l_compat.c: Likewise.
+       * math/w_log2_compat.c: Likewise.
+       * math/w_log2f_compat.c: Likewise.
+       * math/w_log2l_compat.c: Likewise.
+       * math/w_log_compat.c: Likewise.
+       * math/w_logf_compat.c: Likewise.
+       * math/w_logl_compat.c: Likewise.
+       * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
+       * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
+       * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
+       * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
+       * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
+       * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
+       * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
+       * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
+       * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
+       * sysdeps/ieee754/k_standardl.c: Likewise.
+       * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
+       * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
+       * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
+       * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
+       * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
+       * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
+       * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
+       * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
+       * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
+       * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
+       * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
+       * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
+       * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
+       * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
+       * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
+       * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
+       * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
+       * math/w_ilogb_template.c: Include <fenv.h> instead of
+       <fenv_private.h>.
+       * math/w_llogb_template.c: Likewise.
+       * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
+       * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
+
 2018-09-03  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
index 76679e1e1837d9b2ea3538df66b4981deaa045cb..0b32f80964c8634715d838b46787bbacab795710 100644 (file)
@@ -57,6 +57,96 @@ struct rm_ctx
 #  define FE_HAVE_ROUNDING_MODES 0
 # endif
 
+/* When no floating-point exceptions are defined in <fenv.h>, make
+   feraiseexcept ignore its argument so that unconditional
+   feraiseexcept calls do not cause errors for undefined exceptions.
+   Define it to expand to a void expression so that any calls testing
+   the result of feraiseexcept do produce errors.  */
+# if FE_ALL_EXCEPT == 0
+#  define feraiseexcept(excepts) ((void) 0)
+#  define __feraiseexcept(excepts) ((void) 0)
+# endif
+
+/* Similarly, most <fenv.h> functions have trivial implementations in
+   the absence of support for floating-point exceptions and rounding
+   modes.  */
+
+# if !FE_HAVE_ROUNDING_MODES
+#  if FE_ALL_EXCEPT == 0
+extern inline int
+fegetenv (fenv_t *__e)
+{
+  return 0;
+}
+
+extern inline int
+__fegetenv (fenv_t *__e)
+{
+  return 0;
+}
+
+extern inline int
+feholdexcept (fenv_t *__e)
+{
+  return 0;
+}
+
+extern inline int
+__feholdexcept (fenv_t *__e)
+{
+  return 0;
+}
+
+extern inline int
+fesetenv (const fenv_t *__e)
+{
+  return 0;
+}
+
+extern inline int
+__fesetenv (const fenv_t *__e)
+{
+  return 0;
+}
+
+extern inline int
+feupdateenv (const fenv_t *__e)
+{
+  return 0;
+}
+
+extern inline int
+__feupdateenv (const fenv_t *__e)
+{
+  return 0;
+}
+#  endif
+
+extern inline int
+fegetround (void)
+{
+  return FE_TONEAREST;
+}
+
+extern inline int
+__fegetround (void)
+{
+  return FE_TONEAREST;
+}
+
+extern inline int
+fesetround (int __d)
+{
+  return 0;
+}
+
+extern inline int
+__fesetround (int __d)
+{
+  return 0;
+}
+# endif
+
 #endif
 
 #endif
index de968d42113792f13bcd95a81cb4be4daa2b8ccd..c3b4a07731aca7181b1fc0748fd5deee14c22a4b 100644 (file)
@@ -20,6 +20,9 @@
 #include <fenv.h>
 #include <shlib-compat.h>
 
+#undef __feraiseexcept
+#undef feraiseexcept
+
 int
 __feraiseexcept (int excepts)
 {
index 718a5120d8ebd18bc1eaea4002e36711e328ecb7..9d102a635f4d2b92b63879e11f3422b89d99515c 100644 (file)
@@ -22,7 +22,6 @@
 #include <math.h>
 #include <math-barriers.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <stdbool.h>
 #include <stdint.h>
 
index 766681a2bbc57799a37388a1eec2692c9a14d8d8..5fdab1e5ac3fa7b465b408e1230d1e998b22cb36 100644 (file)
@@ -21,7 +21,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-underflow.h>
 #include <float.h>
 
index 4581852b1763d6f90e828e9ec3a49b10843d83f5..5f95e92ee0024351dd2c4a9cb7028d765f1b8c0c 100644 (file)
@@ -21,7 +21,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-underflow.h>
 #include <float.h>
 
index ad599d67eab5546ba8f92db55dd7c5b7e05e263b..95f28c2b6690e1f93d35d694c26ca3d074262d8b 100644 (file)
@@ -21,7 +21,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-underflow.h>
 #include <float.h>
 
index bd9247c98d6618d68f7286ab194081043745602b..ab11c2529905fcf564671de2f7c49f5b172714d4 100644 (file)
@@ -21,7 +21,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-underflow.h>
 #include <float.h>
 
index 7b1dd9aa6771a4e72323fdb333f1cb3a04530259..bd1292239fe42cfb3a4154427c00283d3937b780 100644 (file)
@@ -21,7 +21,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-underflow.h>
 #include <float.h>
 
index b3a86aea506d706bba868becd30b77742538ef7d..a4d28d778d7963b5aa44a25bd9f023a0d7438142 100644 (file)
@@ -20,7 +20,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <stdbool.h>
 #include <fix-fp-int-compare-invalid.h>
 
index ff6d163c203082aefef393ed7b457458beb5643f..079fdb271f9c1b582a8c6cf858286398c26cb9ca 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-double.h>
 
index 0f38a20564f7238722299acaf2c9aa4acfef9352..efc09edb2a9efff671af6cbec11418b5717b8621 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-float.h>
 
index e24fb03b5f2c992c57da80cfd8d47c885386ebf2..d630a10a40e0c67fae80b36de8415de9996c79ad 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-ldouble.h>
 
index 43ea34a7dc83fd96518d862b49597db8b5142acd..c55913d30478159975a2bae615a486483ccf9d51 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-double.h>
 
index 58c6dcaf27d7651adc9638d3c1319546cf99c6c0..1fc18c2e919ba75a0a701be8954714f34b8518dd 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-float.h>
 
index c7ea8358af879f7ae013bd7509ec1c7db5732854..6741138f74b48c287f3db87e7bd19975e00fd4d0 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-ldouble.h>
 
index fd41dc2627331cf0a4e44830102763d51cba3eea..ac80d7f41fed2790c90d53520bd741839e884d42 100644 (file)
@@ -20,7 +20,7 @@
 #include <errno.h>
 #include <limits.h>
 #include <math_private.h>
-#include <fenv_private.h>
+#include <fenv.h>
 
 /* wrapper ilogb */
 int
index f8ce3f8d3c3420413b4328815244c566e9239725..a298353ac4f13456bd495eef6df94edae588ae22 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-double.h>
 
index 0bee2fb011eb320037795db5c30d28b3c31274c8..41d3a101471e5f1ba954976eaed802d6345e0c7a 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-float.h>
 
index 9d2c5d46a435e17f61096a6d7f43d75f02105d65..e436cb278b3a220f6f0c4cfa90d22814054525a5 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-ldouble.h>
 
index 11a56889f1b3b0e2cbf2817b2ca374f6b54481b7..3b014b8cfa9c18326b36a9c54c97e4b94aeb5665 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-double.h>
 
index e59d954626bfb8639c7825ecaae67bb219f520ff..5cfb6b9cd597988d62c738af04adb88e1c017f99 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-float.h>
 
index 400040a0a033d1fc191bf7ab3b0a3a4e2101209f..fb0adc68cbc01f9137967825be114a7fdecbec5b 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-ldouble.h>
 
index a169c7b2108856fa91efeef755bbb716c7963295..8b546ba4a263a8511ebd426ba8edba4c944a8fdc 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-double.h>
 
index 11769e2e26605b9d891e526761ea66a4a869367c..86386700deee7f00c0e423e84b5f72c6226bbcd5 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-float.h>
 
index 76f2557677de2597c6b68a4f97918a35bec89098..562d97be6d8ad0c8573965f10b7fe2b7c8a382ab 100644 (file)
@@ -20,7 +20,7 @@
 #include <errno.h>
 #include <limits.h>
 #include <math_private.h>
-#include <fenv_private.h>
+#include <fenv.h>
 
 long int
 M_DECL_FUNC (__llogb) (FLOAT x)
index 996139dc7c70a2dd1442121b460996246bfaef95..87c155d256552892954fec6b7d5917797c058de7 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-double.h>
 
index 9cee2185d2a05cd650111bfc3a646c55f34fb05b..fd1861a6ab511e4f47437eb1613718beefb86ce8 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-float.h>
 
index b4b404822e5090b2a1f569ae94b6176db2b6ae09..d2387c225a33ce11674ee5735cc45728de65ce8b 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-ldouble.h>
 
index 7b34a991e63374bc25088e0cedd8bac48ff076cd..61e7170ae19e67153ff3d481c751fd2fbc97f51e 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-double.h>
 
index c9d99be07a5a105e26031bf7d1fdf277306003ff..7b4b545c818cc85106109becdaec3e1ad520de61 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-float.h>
 
index c40016532d5111b7897ca70de68b996016c98ffb..ba74ed2576a3fa0419be439e8051129e834e6601 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-ldouble.h>
 
index 4ed4eea6e8f5602ce26a7b373dfe54790fa3a8fb..5413b8e8dfd9d184b3ea7ae07627a9fbb94b9893 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-double.h>
 
index 7e8c124c4d1b7871d99950bf88bcb29f5d938aae..9810d30c522a11d5c8d6848f806b1d4006427689 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-float.h>
 
index f47d792a1692c968185f5dcb1e973ab59d137786..991251a7c544ba703446cbb16d9e62518b1fd619 100644 (file)
@@ -19,7 +19,6 @@
 #include <fenv.h>
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <libm-alias-ldouble.h>
 
index 912d23108f5f6464b5b9fc08d9812b0e20285624..562c95a0d200b8623f73566d4eb08434bc1c93bd 100644 (file)
@@ -324,94 +324,4 @@ default_libc_feresetround_noex_ctx (struct rm_ctx *ctx)
   SET_RESTORE_ROUND_GENERIC (RM, libc_feholdsetround_53bit,          \
                             libc_feresetround_53bit)
 
-/* When no floating-point exceptions are defined in <fenv.h>, make
-   feraiseexcept ignore its argument so that unconditional
-   feraiseexcept calls do not cause errors for undefined exceptions.
-   Define it to expand to a void expression so that any calls testing
-   the result of feraiseexcept do produce errors.  */
-#if FE_ALL_EXCEPT == 0
-# define feraiseexcept(excepts) ((void) 0)
-# define __feraiseexcept(excepts) ((void) 0)
-#endif
-
-/* Similarly, most <fenv.h> functions have trivial implementations in
-   the absence of support for floating-point exceptions and rounding
-   modes.  */
-
-#if !FE_HAVE_ROUNDING_MODES
-# if FE_ALL_EXCEPT == 0
-extern inline int
-fegetenv (fenv_t *__e)
-{
-  return 0;
-}
-
-extern inline int
-__fegetenv (fenv_t *__e)
-{
-  return 0;
-}
-
-extern inline int
-feholdexcept (fenv_t *__e)
-{
-  return 0;
-}
-
-extern inline int
-__feholdexcept (fenv_t *__e)
-{
-  return 0;
-}
-
-extern inline int
-fesetenv (const fenv_t *__e)
-{
-  return 0;
-}
-
-extern inline int
-__fesetenv (const fenv_t *__e)
-{
-  return 0;
-}
-
-extern inline int
-feupdateenv (const fenv_t *__e)
-{
-  return 0;
-}
-
-extern inline int
-__feupdateenv (const fenv_t *__e)
-{
-  return 0;
-}
-# endif
-
-extern inline int
-fegetround (void)
-{
-  return FE_TONEAREST;
-}
-
-extern inline int
-__fegetround (void)
-{
-  return FE_TONEAREST;
-}
-
-extern inline int
-fesetround (int __d)
-{
-  return 0;
-}
-
-extern inline int
-__fesetround (int __d)
-{
-  return 0;
-}
-#endif
-
 #endif /* fenv_private.h.  */
index 1c5f17a21afbb1176f24d0ca8f63c2e8123ad0a2..8159706f901b9097285186534c73f5a693570250 100644 (file)
@@ -24,7 +24,6 @@
 
 #include <math-narrow-eval.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-double.h>
 #include <fix-fp-int-convert-overflow.h>
 
index 6cb03a0d20c7850523b401cb2234dbbba8495ae7..1067d19859e997ae52f013ee09babda8f5ca6c61 100644 (file)
@@ -22,7 +22,6 @@
 #include <math.h>
 
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-double.h>
 #include <fix-fp-int-convert-overflow.h>
 
index 9b77403063699cea964f3dbc62b0c1c903cceab1..0e64ae1260d9fa2411ffd81eb31340ab6b1dc788 100644 (file)
@@ -24,7 +24,6 @@
 
 #include <math-narrow-eval.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-double.h>
 #include <fix-fp-int-convert-overflow.h>
 
index 44de8df95217267748f6d5d6e9a941c4e51eda22..70f624eea1f1ddd63dbc03aeb9a56227e6323b8d 100644 (file)
@@ -22,7 +22,6 @@
 #include <math.h>
 
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-double.h>
 #include <fix-fp-int-convert-overflow.h>
 
index 5e77af309e665175ae8f1d179ae286abce9ecec6..a88c6c87889d4ba53729cf6b40692833bea1aec9 100644 (file)
@@ -21,7 +21,6 @@
 #include <math.h>
 
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-double.h>
 
 /* For LP64, lround is an alias for llround.  */
index c6b39b64dfc1da6bdec9f8a56ea3e76406bc7e9d..7c64bb2db4e95fcfeffdb030992931da68846d81 100644 (file)
@@ -24,7 +24,6 @@
 
 #include <math-narrow-eval.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-float.h>
 #include <fix-fp-int-convert-overflow.h>
 
index abbdafbc1d9ce296fe3e5cd298dd4fdcc1a5909d..5457f9fa88979c289efd4ea92aceb14decf0512d 100644 (file)
@@ -22,7 +22,6 @@
 #include <math.h>
 
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-float.h>
 #include <fix-fp-int-convert-overflow.h>
 
index c45bdc185810e6455944d9e18b54da701aa0c55d..5171377a4eb388edce6c069868f122cb0f240fe1 100644 (file)
@@ -24,7 +24,6 @@
 
 #include <math-narrow-eval.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-float.h>
 #include <fix-fp-int-convert-overflow.h>
 
index 7f18239376adfc7fd853317103a0517981e4b85a..20e7216640d44d52e52bba24b40a86865d80644b 100644 (file)
@@ -22,7 +22,6 @@
 #include <math.h>
 
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-float.h>
 #include <fix-fp-int-convert-overflow.h>
 
index 1368553bf19bce4da9b4da84d43ce1cd067353fc..58abc22b6ef8c43162089d19d6886d136ecceb58 100644 (file)
@@ -33,7 +33,6 @@
 #include <math.h>
 #include <math-barriers.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-svid-compat.h>
 #include <fenv.h>
 #include <float.h>
index 237622d9a89412f640af4d25f770a4ce3e684214..b4b21c4957bd43988199244fec255abd73bd2111 100644 (file)
@@ -66,7 +66,6 @@
 #include <inttypes.h>
 #include <math-barriers.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math-underflow.h>
 #include <stdlib.h>
 #include "t_expl.h"
index 8b4875b25df0d72d60a9dbcd83e3ca56781b3cee..4eba9253df3f080aa6a8544bb13f5a387aea660b 100644 (file)
@@ -23,7 +23,6 @@
 #include <ieee754.h>
 #include <math-barriers.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-ldouble.h>
 #include <tininess.h>
 
index 3ea7bcff8ab97704e245e5d3e5c1e5cd2fd0554b..ce17cf962ac1da6b65f2960fd16777ed9e3ce90a 100644 (file)
@@ -24,7 +24,6 @@
 #include <math.h>
 
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-ldouble.h>
 #include <fix-fp-int-convert-overflow.h>
 
index 5ab774b3752b54d0f348c3e0cee4d2ca2ed87133..1973e1bffd4bbf7d25712d058d5c77eb841501f4 100644 (file)
@@ -23,7 +23,6 @@
 #include <math.h>
 
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-ldouble.h>
 #include <fix-fp-int-convert-overflow.h>
 
index 7d5a5ecc518fa867a1b10fb2c3e789d006c825bf..c1233a45dc4c5538f6ea0eae06b1028b6dc51c82 100644 (file)
@@ -24,7 +24,6 @@
 #include <math.h>
 
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-ldouble.h>
 #include <fix-fp-int-convert-overflow.h>
 
index 9aafbea32aa1a4b5dfb4eecec8085feca1b7dadb..f109157d67442cde01d5adfda0624be6ff1e23ae 100644 (file)
@@ -23,7 +23,6 @@
 #include <math.h>
 
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-ldouble.h>
 #include <fix-fp-int-convert-overflow.h>
 
index 44bd6e1340dd111e5e03e25b72c12b1568388dd3..f044cb4334e6a12331b284107100b285bbe0e5b6 100644 (file)
@@ -27,7 +27,6 @@
 #include <math.h>
 #include <math-barriers.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-ldouble.h>
 
 static const _Float128
index 174b6db551878a066fcfaee9b0e7847be27fc6ac..9d4535103e8449b68b1ab88c1745549a22481bc2 100644 (file)
@@ -20,7 +20,6 @@
 #include <math.h>
 #include <fenv.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math_ldbl_opt.h>
 #include <float.h>
 #include <ieee754.h>
index c99caec81705c1a1415af7d5ac048493d918dcf3..de6a7b5be2222f48c006047a86e5f1ac1c033d6a 100644 (file)
@@ -20,7 +20,6 @@
 #include <math.h>
 #include <fenv.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math_ldbl_opt.h>
 #include <float.h>
 #include <ieee754.h>
index 7990cbfa173de7ecada52a104d186fd593832f65..05fe7fefdfe6016ed751b0b0c81979d35e330558 100644 (file)
@@ -20,7 +20,6 @@
 #include <math.h>
 #include <fenv.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math_ldbl_opt.h>
 #include <float.h>
 #include <ieee754.h>
index 44dc6cf4d15d5d7ebaadf4936ecce1dadfe88b2e..bc8dda4c1d99e4cdcbbd2ce2ecfa68e4c866da7f 100644 (file)
@@ -20,7 +20,6 @@
 #include <math.h>
 #include <fenv.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <math_ldbl_opt.h>
 #include <float.h>
 #include <ieee754.h>
index 736db65d100386038cac110d107c79a5021dfc4f..986879cda5835c6e64c8e3670542c0ec48b2ba9e 100644 (file)
@@ -23,7 +23,6 @@
 #include <ieee754.h>
 #include <math-barriers.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-double.h>
 
 /* This implementation uses rounding to odd to avoid problems with
index 5129e84954060d82d07b60fb5dd379c124baf453..0b261fd17acdca3da69074669676d519b185bea7 100644 (file)
@@ -23,7 +23,6 @@
 #include <ieee754.h>
 #include <math-barriers.h>
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-ldouble.h>
 #include <tininess.h>
 
index 58571e973e2f5e375a4cd459b7e7d307bdc61643..d45a69a1f76cef6274abc372edd40bf1053d4087 100644 (file)
@@ -23,7 +23,6 @@
 #include <math.h>
 
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-ldouble.h>
 
 static const long double two63[2] =
index 3c4597f8ee46cc56261985080497ec62d4a65c63..601fd0e6443c2fd701b642d83a912bf86b545a74 100644 (file)
@@ -22,7 +22,6 @@
 #include <math.h>
 
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-ldouble.h>
 
 
index 42b9303b3db6fd4fc1baae745f3e0276e0bcee02..df3222c7f2a4632cce99537b4f43e87559d5fe59 100644 (file)
@@ -23,7 +23,6 @@
 #include <math.h>
 
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-ldouble.h>
 
 static const long double two63[2] =
index aead3aadb7a32f4246173705e836584fde508283..0cc9f9c5d6bca6502b3aa096c10913ad6781cec2 100644 (file)
@@ -22,7 +22,6 @@
 #include <math.h>
 
 #include <math_private.h>
-#include <fenv_private.h>
 #include <libm-alias-ldouble.h>
 
 
index a8bf2001a69ba64abe9b56764a08db62020d8f19..98f17fb24830bc354e92e540bce8b1e93cf304e6 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
+#include <fenv.h>
 #include <fenv_libc.h>
 #include <inttypes.h>
 #include <stdint.h>
index c12b15b3cc247c9183b14a124a96f5fecc28dbc6..58125f5cfc3505c61ff1e7aa7934162c69d6364c 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <math.h>
 #include <math_private.h>
-#include <fenv_private.h>
+#include <fenv.h>
 #include <fenv_libc.h>
 #include <inttypes.h>
 #include <stdint.h>