[PATCH] Use __inline instead of inline in emmintrin.h

Jakub Jelinek jakub@redhat.com
Mon May 30 16:19:00 GMT 2005


Hi!

I was told that some part of Xorg defines inline to something strange
and that there are errors on the last 6 inlines of emmintrin.h when
included.
Given that __inline is used a few hundred times in *mmintrin.h and
inline just for the 6 inlines added in January, I think the following
patch makes sense if not for anything else, then for consistency.
Ok for HEAD/4.0?

2005-05-30  Jakub Jelinek  <jakub@redhat.com>

	* config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128,
	_mm_castps_pd, _mm_castps_si128, _mm_castsi128_ps, _mm_castsi128_pd):
	Use __inline instead of inline.

--- gcc/config/i386/emmintrin.h.jj	2005-03-17 13:38:37.000000000 +0100
+++ gcc/config/i386/emmintrin.h	2005-05-30 17:41:12.000000000 +0200
@@ -1387,37 +1387,37 @@ _mm_cvtsi64x_si128 (long long __A)
 
 /* Casts between various SP, DP, INT vector types.  Note that these do no
    conversion of values, they just change the type.  */
-static inline __m128
+static __inline __m128
 _mm_castpd_ps(__m128d __A)
 {
   return (__m128) __A;
 }
 
-static inline __m128i
+static __inline __m128i
 _mm_castpd_si128(__m128d __A)
 {
   return (__m128i) __A;
 }
 
-static inline __m128d
+static __inline __m128d
 _mm_castps_pd(__m128 __A)
 {
   return (__m128d) __A;
 }
 
-static inline __m128i
+static __inline __m128i
 _mm_castps_si128(__m128 __A)
 {
   return (__m128i) __A;
 }
 
-static inline __m128
+static __inline __m128
 _mm_castsi128_ps(__m128i __A)
 {
   return (__m128) __A;
 }
 
-static inline __m128d
+static __inline __m128d
 _mm_castsi128_pd(__m128i __A)
 {
   return (__m128d) __A;

	Jakub



More information about the Gcc-patches mailing list