MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / CPUIDX86

Function CPUIDX86

src/openrct2/platform/Platform.Common.cpp:204–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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()

Callers 2

SSE41AvailableFunction · 0.85
AVX2AvailableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected