[cfe-commits] r61434 - /cfe/trunk/lib/Headers/emmintrin.devel.h
Anders Carlsson
andersca at mac.com
Thu Dec 25 16:49:44 PST 2008
Author: andersca
Date: Thu Dec 25 18:49:43 2008
New Revision: 61434
URL: http://llvm.org/viewvc/llvm-project?rev=61434&view=rev
Log:
Add _mm_pause and _MM_SHUFFLE
Modified:
cfe/trunk/lib/Headers/emmintrin.devel.h
Modified: cfe/trunk/lib/Headers/emmintrin.devel.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/emmintrin.devel.h?rev=61434&r1=61433&r2=61434&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/emmintrin.devel.h (original)
+++ cfe/trunk/lib/Headers/emmintrin.devel.h Thu Dec 25 18:49:43 2008
@@ -1104,6 +1104,13 @@
return (__m128d)in;
}
+static inline void __attribute__((__always_inline__)) _mm_pause(void)
+{
+ asm("pause");
+}
+
+#define _MM_SHUFFLE(x, y) (((x) << 1) | (y))
+
#endif /* __SSE2__ */
#endif /* __EMMINTRIN_H */
More information about the cfe-commits
mailing list