| 202 | |
| 203 | #ifdef OPENRCT2_X86 |
| 204 | static bool CPUIDX86(uint32_t* cpuid_outdata, int32_t eax) |
| 205 | { |
| 206 | #if defined(OpenRCT2_CPUID_GNUC_X86) |
| 207 | int ret = __get_cpuid(eax, &cpuid_outdata[0], &cpuid_outdata[1], &cpuid_outdata[2], &cpuid_outdata[3]); |
| 208 | return ret == 1; |
| 209 | #elif defined(OpenRCT2_CPUID_MSVC_X86) |
| 210 | __cpuid(reinterpret_cast<int*>(cpuid_outdata), static_cast<int>(eax)); |
| 211 | return true; |
| 212 | #else |
| 213 | return false; |
| 214 | #endif |
| 215 | } |
| 216 | #endif // OPENRCT2_X86 |
| 217 | |
| 218 | bool SSE41Available() |
no outgoing calls
no test coverage detected