Mostly minor updates to the source tree for portcls.
[reactos.git] / reactos / lib / mingw / 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
19 /* Currently we use this in fpenv functions */
20 #define __HAS_SSE __cpu_features & _CRT_SSE
21
22 void __cpu_features_init (void);
23
24
25 #endif