about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2017-09-29 17:52:06 +0100
committerWilco Dijkstra <wdijkstr@arm.com>2017-09-29 17:53:57 +0100
commitfffb15073516d8e137e2e5def0ae813d11020f88 (patch)
tree8a526120bc4753b14e0fa995cdb3a754057f9be1
parent4ea49f4c08eeac1a64a5aba8c9033b604afe8b2c (diff)
downloadglibc-fffb15073516d8e137e2e5def0ae813d11020f88.tar.gz
glibc-fffb15073516d8e137e2e5def0ae813d11020f88.tar.xz
glibc-fffb15073516d8e137e2e5def0ae813d11020f88.zip
Remove old cimag inlines
Remove old cimag inlines that are only used in GCC 2.96 or older.

	* math/bits/cmathcalls.h (cimag): Remove inline.
	(creal): Remove inline.
	(conj): Remove inline.
-rw-r--r--ChangeLog6
-rw-r--r--math/bits/cmathcalls.h30
2 files changed, 6 insertions, 30 deletions
diff --git a/ChangeLog b/ChangeLog
index 0ab2ceb8d2..b8d2a3e00d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
+
+	* math/bits/cmathcalls.h (cimag): Remove inline.
+	(creal): Remove inline.
+	(conj): Remove inline.
+
 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
 
 	* math/Makefile (type-float-routines): Add e_powf_log2_data.
diff --git a/math/bits/cmathcalls.h b/math/bits/cmathcalls.h
index 7f042dbeaa..7c2c9e13c3 100644
--- a/math/bits/cmathcalls.h
+++ b/math/bits/cmathcalls.h
@@ -128,33 +128,3 @@ __MATHDECL (_Mdouble_,cimag, (_Mdouble_complex_ __z));
 
 /* Real part of Z.  */
 __MATHDECL (_Mdouble_,creal, (_Mdouble_complex_ __z));
-
-
-/* Now some optimized versions.  GCC has handy notations for these
-   functions.  Recent GCC handles these as builtin functions so does
-   not need inlines.  */
-#if defined __GNUC__ && !__GNUC_PREREQ (2, 97) && defined __OPTIMIZE__ \
-    && defined __extern_inline
-
-/* Imaginary part of Z.  */
-__extern_inline _Mdouble_
-__MATH_PRECNAME(cimag) (_Mdouble_complex_ __z) __THROW
-{
-  return __imag__ __z;
-}
-
-/* Real part of Z.  */
-__extern_inline _Mdouble_
-__MATH_PRECNAME(creal) (_Mdouble_complex_ __z) __THROW
-{
-  return __real__ __z;
-}
-
-/* Complex conjugate of Z.  */
-__extern_inline _Mdouble_complex_
-__MATH_PRECNAME(conj) (_Mdouble_complex_ __z) __THROW
-{
-  return __extension__ ~__z;
-}
-
-#endif