[cfe-commits] r96363 - /cfe/trunk/lib/Headers/xmmintrin.h
Chris Lattner
sabre at nondot.org
Tue Feb 16 10:21:26 PST 2010
Author: lattner
Date: Tue Feb 16 12:21:25 2010
New Revision: 96363
URL: http://llvm.org/viewvc/llvm-project?rev=96363&view=rev
Log:
add two aliases for SSE functions we already have, fixing PR6316.
Modified:
cfe/trunk/lib/Headers/xmmintrin.h
Modified: cfe/trunk/lib/Headers/xmmintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/xmmintrin.h?rev=96363&r1=96362&r2=96363&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/xmmintrin.h (original)
+++ cfe/trunk/lib/Headers/xmmintrin.h Tue Feb 16 12:21:25 2010
@@ -397,6 +397,12 @@
return __builtin_ia32_cvtss2si(a);
}
+static inline int __attribute__((__always_inline__, __nodebug__))
+_mm_cvt_ss2si(__m128 a)
+{
+ return _mm_cvtss_si32(a);
+}
+
#ifdef __x86_64__
static inline long long __attribute__((__always_inline__, __nodebug__))
@@ -419,6 +425,12 @@
return a[0];
}
+static inline int __attribute__((__always_inline__, __nodebug__))
+_mm_cvtt_ss2si(__m128 a)
+{
+ return _mm_cvttss_si32(a);
+}
+
static inline long long __attribute__((__always_inline__, __nodebug__))
_mm_cvttss_si64(__m128 a)
{
More information about the cfe-commits
mailing list