OSDN Git Service

Provide legacy OS work around for issue [#2357]
[mingw/mingw-org-wsl.git] / mingwrt / cpu_features.h
1 #ifndef _CPU_FEATURES_H
2 #define _CPU_FEATURES_H
3
4 #include <stdbool.h>
5
6 #define  _CRT_CMPXCHG8B         0x0001
7 #define  _CRT_CMOV              0x0002
8 #define  _CRT_MMX               0x0004
9 #define  _CRT_FXSR              0x0008
10 #define  _CRT_SSE               0x0010
11 #define  _CRT_SSE2              0x0020
12 #define  _CRT_SSE3              0x0040
13 #define  _CRT_CMPXCHG16B        0x0080
14 #define  _CRT_3DNOW             0x0100
15 #define  _CRT_3DNOWP            0x0200
16
17 #if !__ASSEMBLER__
18 extern unsigned int __cpu_features;
19 extern void __cpu_features_init (void);
20 #endif
21
22 /* Currently we use this in fpenv  functions */
23 #define __HAS_SSE  __cpu_features & _CRT_SSE
24
25 #endif