This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Use __inline instead of inline in emmintrin.h
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 30 May 2005 11:51:07 -0400
- Subject: [PATCH] Use __inline instead of inline in emmintrin.h
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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