[CRT] Implement xmmintrin.h

This includes inline functions for GCC/Clang.
Note: the previous GCC definition of __m128 was broken and didn't work.
This commit is contained in:
Timo Kreuzer 2022-06-04 11:14:42 +02:00
parent 9c8a2bbc81
commit 318d696f0e
2 changed files with 1193 additions and 87 deletions

View File

@ -111,15 +111,6 @@ __INTRIN_INLINE void _mm_lfence(void)
} }
#endif #endif
#if !HAS_BUILTIN(_mm_sfence)
__INTRIN_INLINE void _mm_sfence(void)
{
_WriteBarrier();
__asm__ __volatile__("sfence");
_WriteBarrier();
}
#endif
#if defined(__x86_64__) && !HAS_BUILTIN(__faststorefence) #if defined(__x86_64__) && !HAS_BUILTIN(__faststorefence)
__INTRIN_INLINE void __faststorefence(void) __INTRIN_INLINE void __faststorefence(void)
{ {

File diff suppressed because it is too large Load Diff