[CRT] Use explicit C linkage for intrinsic functions.

Fixes MSVC warnings:
sdk\include\crt\xmmintrin.h(33): warning C4162: '_mm_getcsr': no function with C linkage found
sdk\include\crt\xmmintrin.h(35): warning C4162: '_mm_setcsr': no function with C linkage found
This commit is contained in:
Thomas Faber 2018-12-19 10:54:49 +01:00
parent 549793b8a4
commit 0d6dcee968
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -25,6 +25,10 @@ typedef union _DECLSPEC_INTRIN_TYPE _CRT_ALIGN(16) __m128
} __m128;
#ifdef __cplusplus
extern "C" {
#endif
extern __m128 _mm_load_ss(float const*);
extern int _mm_cvt_ss2si(__m128);
@ -64,6 +68,9 @@ __INTRIN_INLINE void _mm_setcsr(unsigned int val)
/* Alternate names */
#define _mm_cvtss_si32 _mm_cvt_ss2si
#ifdef __cplusplus
}
#endif
/* _mm_prefetch constants */
#define _MM_HINT_T0 1