[PATCH 2/4] math: Remove mathinline

Adhemerval Zanella adhemerval.zanella@linaro.org
Tue Mar 17 19:01:31 GMT 2020


With m68k bits moved to internal headers, no architectures export
additional optimizations on mathinline.
---
 bits/mathinline.h | 12 ------------
 math/Makefile     |  2 +-
 math/math.h       |  6 ------
 3 files changed, 1 insertion(+), 19 deletions(-)
 delete mode 100644 bits/mathinline.h

diff --git a/bits/mathinline.h b/bits/mathinline.h
deleted file mode 100644
index 02ec21b438..0000000000
--- a/bits/mathinline.h
+++ /dev/null
@@ -1,12 +0,0 @@
-/* This file should provide inline versions of math functions.
-
-   Surround GCC-specific parts with #ifdef __GNUC__, and use `__extern_inline'.
-
-   This file should define __MATH_INLINES if functions are actually defined as
-   inlines.  */
-
-#if !defined __NO_MATH_INLINES && defined __OPTIMIZE__
-
-/* Here goes the real code.  */
-
-#endif
diff --git a/math/Makefile b/math/Makefile
index 84a8b94c74..2a5f8bf353 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -22,7 +22,7 @@ subdir		:= math
 include ../Makeconfig
 
 # Installed header files.
-headers		:= math.h bits/mathcalls.h bits/mathinline.h \
+headers		:= math.h bits/mathcalls.h \
 		   fpu_control.h complex.h bits/cmathcalls.h fenv.h \
 		   bits/fenv.h bits/fenvinline.h bits/mathdef.h tgmath.h \
 		   bits/math-vector.h finclude/math-vector-fortran.h \
diff --git a/math/math.h b/math/math.h
index 1692ff4a45..5c3dcb9194 100644
--- a/math/math.h
+++ b/math/math.h
@@ -1301,12 +1301,6 @@ iszero (__T __val)
 # endif
 #endif
 
-/* Get machine-dependent inline versions (if there are any).  */
-#ifdef __USE_EXTERN_INLINES
-# include <bits/mathinline.h>
-#endif
-
-
 #if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
 /* An expression whose type has the widest of the evaluation formats
    of X and Y (which are of floating-point types).  */
-- 
2.17.1



More information about the Libc-alpha mailing list