[cfe-commits] r61326 - /cfe/trunk/lib/Headers/xmmintrin.devel.h
Anders Carlsson
andersca at mac.com
Sun Dec 21 21:00:08 PST 2008
Author: andersca
Date: Sun Dec 21 23:00:07 2008
New Revision: 61326
URL: http://llvm.org/viewvc/llvm-project?rev=61326&view=rev
Log:
Add control register intrinsics
Modified:
cfe/trunk/lib/Headers/xmmintrin.devel.h
Modified: cfe/trunk/lib/Headers/xmmintrin.devel.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/xmmintrin.devel.h?rev=61326&r1=61325&r2=61326&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/xmmintrin.devel.h (original)
+++ cfe/trunk/lib/Headers/xmmintrin.devel.h Sun Dec 21 23:00:07 2008
@@ -613,6 +613,17 @@
{
return (__m64)__builtin_ia32_psadbw((__v8qi)a, (__v8qi)b);
}
+
+static inline unsigned int __attribute__((__always_inline___)) _mm_getcsr(void)
+{
+ return __builtin_ia32_stmxcsr();
+}
+
+static inline void __attribute__((__always_inline__)) _mm_setcsr(unsigned int i)
+{
+ __builtin_ia32_ldmxcsr(i);
+}
+
#endif /* __SSE__ */
#endif /* __XMMINTRIN_H */
More information about the cfe-commits
mailing list