include: Implement __cpuidex() function.
[wine.git] / include / msvcrt / intrin.h
blob38496251d5a2d5468d4a761a7a2d3e4352541aa4
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the Wine project.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
7 #ifndef _INC_INTRIN
8 #define _INC_INTRIN
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
14 #if defined(__i386__) || defined(__x86_64__)
15 static inline void __cpuidex(int info[4], int ax, int cx)
17 __asm__ ("cpuid" : "=a"(info[0]), "=b" (info[1]), "=c"(info[2]), "=d"(info[3]) : "a"(ax), "c"(cx));
19 static inline void __cpuid(int info[4], int ax)
21 return __cpuidex(info, ax, 0);
23 #endif
25 #ifdef __cplusplus
27 #endif
29 #endif /* _INC_INTRIN */