]> granicus.if.org Git - clang/commitdiff
Add _mm_pause and _MM_SHUFFLE
authorAnders Carlsson <andersca@mac.com>
Fri, 26 Dec 2008 00:49:43 +0000 (00:49 +0000)
committerAnders Carlsson <andersca@mac.com>
Fri, 26 Dec 2008 00:49:43 +0000 (00:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61434 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/emmintrin.devel.h

index 6d5618ae9fa08a62c565912ef48c01815e1d4bc6..7715a7a94cd7833130d3ed78bae75059cbdffe08 100644 (file)
@@ -1104,6 +1104,13 @@ static inline __m128d __attribute__((__always_inline__)) _mm_castsi128_pd(__m128
   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 */