| 117 | #include <intrin.h> |
| 118 | |
| 119 | inline std::array<unsigned int,4> cpuid(int function_id) |
| 120 | { |
| 121 | std::array<unsigned int,4> info; |
| 122 | // Load EAX, EBX, ECX, EDX into info |
| 123 | __cpuid((int*)info.data(), function_id); |
| 124 | return info; |
| 125 | } |
| 126 | |
| 127 | #elif (defined(__GNUC__) || defined(__clang__)) && (defined(__i386__) || defined(__i686__) || defined(__amd64__) || defined(__x86_64__)) |
| 128 | #include <cpuid.h> |
no test coverage detected