[cfe-commits] r98305 - /cfe/trunk/lib/Headers/smmintrin.h
Eric Christopher
echristo at apple.com
Thu Mar 11 15:50:18 PST 2010
Author: echristo
Date: Thu Mar 11 17:50:18 2010
New Revision: 98305
URL: http://llvm.org/viewvc/llvm-project?rev=98305&view=rev
Log:
Integer array extraction for sse4.1.
Modified:
cfe/trunk/lib/Headers/smmintrin.h
Modified: cfe/trunk/lib/Headers/smmintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/smmintrin.h?rev=98305&r1=98304&r2=98305&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/smmintrin.h (original)
+++ cfe/trunk/lib/Headers/smmintrin.h Thu Mar 11 17:50:18 2010
@@ -213,6 +213,16 @@
__a;}))
#endif /* __x86_64__ */
+/* Extract int from packed integer array at index. */
+#define _mm_extract_epi8(X, N) (__extension__ ({ __v16qi __a = (__v16qi)X; \
+ __a[N];}))
+#define _mm_extract_epi32(X, N) (__extension__ ({ __v4si __a = (__v4si)X; \
+ __a[N];}))
+#ifdef __x86_64__
+#define _mm_extract_epi64(X, N) (__extension__ ({ __v2di __a = (__v2di)X; \
+ __a[N];}))
+#endif /* __x86_64 */
+
#endif /* __SSE4_1__ */
#endif /* _SMMINTRIN_H */
More information about the cfe-commits
mailing list