diff options
author | Eric Christopher <echristo@apple.com> | 2010-03-20 01:08:47 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-03-20 01:08:47 +0000 |
commit | 020f1ed8a97a630780f6aca8a6d6515ca7717ea9 (patch) | |
tree | 4355657956629458c455b5760cdd3ab98260d0d6 /lib/Headers/xmmintrin.h | |
parent | 355c96ef5a42de8929a53c8dbd4d852cb6d61181 (diff) |
Migrate typedefs to the top level of xmmintrin.h and remove the same
one from emmintrin.h.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99020 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Headers/xmmintrin.h')
-rw-r--r-- | lib/Headers/xmmintrin.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Headers/xmmintrin.h b/lib/Headers/xmmintrin.h index 2f3888bebc..06e616bd19 100644 --- a/lib/Headers/xmmintrin.h +++ b/lib/Headers/xmmintrin.h @@ -30,6 +30,7 @@ #include <mmintrin.h> +typedef int __v4si __attribute__((__vector_size__(16))); typedef float __v4sf __attribute__((__vector_size__(16))); typedef float __m128 __attribute__((__vector_size__(16))); @@ -150,28 +151,24 @@ _mm_max_ps(__m128 a, __m128 b) static inline __m128 __attribute__((__always_inline__, __nodebug__)) _mm_and_ps(__m128 a, __m128 b) { - typedef int __v4si __attribute__((__vector_size__(16))); return (__m128)((__v4si)a & (__v4si)b); } static inline __m128 __attribute__((__always_inline__, __nodebug__)) _mm_andnot_ps(__m128 a, __m128 b) { - typedef int __v4si __attribute__((__vector_size__(16))); return (__m128)(~(__v4si)a & (__v4si)b); } static inline __m128 __attribute__((__always_inline__, __nodebug__)) _mm_or_ps(__m128 a, __m128 b) { - typedef int __v4si __attribute__((__vector_size__(16))); return (__m128)((__v4si)a | (__v4si)b); } static inline __m128 __attribute__((__always_inline__, __nodebug__)) _mm_xor_ps(__m128 a, __m128 b) { - typedef int __v4si __attribute__((__vector_size__(16))); return (__m128)((__v4si)a ^ (__v4si)b); } |