OSDN Git Service

8ec5ac11d886b9c590df6903c07c8a3a708a6fe7
[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 extern unsigned int __cpu_features;
18 extern void __cpu_features_init (void);
19
20 /* Currently we use this in fpenv  functions */
21 #define __HAS_SSE  __cpu_features & _CRT_SSE
22
23
24 #endif