forked from OSchip/llvm-project
Fix mmintrin.h to use proper definition of functions taking no
arguments. - More important than it looks, this inhibits trivial inlining otherwise. llvm-svn: 58360
This commit is contained in:
parent
628ae879ea
commit
dc4030454d
|
@ -34,7 +34,7 @@ typedef int __v2si __attribute__((__vector_size__(8)));
|
||||||
typedef short __v4hi __attribute__((__vector_size__(8)));
|
typedef short __v4hi __attribute__((__vector_size__(8)));
|
||||||
typedef char __v8qi __attribute__((__vector_size__(8)));
|
typedef char __v8qi __attribute__((__vector_size__(8)));
|
||||||
|
|
||||||
static inline void __attribute__((__always_inline__)) _mm_empty()
|
static inline void __attribute__((__always_inline__)) _mm_empty(void)
|
||||||
{
|
{
|
||||||
__builtin_ia32_emms();
|
__builtin_ia32_emms();
|
||||||
}
|
}
|
||||||
|
@ -320,7 +320,7 @@ static inline __m64 __attribute__((__always_inline__)) _mm_cmpgt_pi32(__m64 __m1
|
||||||
return (__m64)__builtin_ia32_pcmpgtd((__v2si)__m1, (__v2si)__m2);
|
return (__m64)__builtin_ia32_pcmpgtd((__v2si)__m1, (__v2si)__m2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline __m64 __attribute__((__always_inline__)) _mm_setzero_si64()
|
static inline __m64 __attribute__((__always_inline__)) _mm_setzero_si64(void)
|
||||||
{
|
{
|
||||||
return (__m64){ 0LL };
|
return (__m64){ 0LL };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue