[cfe-commits] r61321 - /cfe/trunk/lib/Headers/xmmintrin.devel.h
Anders Carlsson
andersca at mac.com
Sun Dec 21 18:51:36 PST 2008
Author: andersca
Date: Sun Dec 21 20:51:35 2008
New Revision: 61321
URL: http://llvm.org/viewvc/llvm-project?rev=61321&view=rev
Log:
Add set 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=61321&r1=61320&r2=61321&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/xmmintrin.devel.h (original)
+++ cfe/trunk/lib/Headers/xmmintrin.devel.h Sun Dec 21 20:51:35 2008
@@ -455,6 +455,31 @@
return __builtin_shufflevector(a, a, 3, 2, 1, 0);
}
+static inline __m128 __attribute__((__always_inline__)) _mm_set_ss(float w)
+{
+ return (__m128){ w, 0, 0, 0 };
+}
+
+static inline __m128 __attribute__((__always_inline__)) _mm_set1_ps(float w)
+{
+ return (__m128){ w, w, w, w };
+}
+
+static inline __m128 __attribute__((__always_inline__)) _mm_set_ps(float z, float y, float x, float w)
+{
+ return (__m128){ w, x, y, z };
+}
+
+static inline __m128 __attribute__((__always_inline__)) _mm_setr_ps(float z, float y, float x, float w)
+{
+ return (__m128){ z, y, x, w };
+}
+
+static inline __m128 __attribute__((__always__inline__)) _mm_setzero_ps(void)
+{
+ return (__m128){ 0, 0, 0, 0 };
+}
+
#endif /* __SSE__ */
#endif /* __XMMINTRIN_H */
More information about the cfe-commits
mailing list