|
@@ -1583,7 +1583,7 @@ SystemInformationImplementation::~SystemInformationImplementation()
|
|
|
|
|
|
|
|
void SystemInformationImplementation::RunCPUCheck()
|
|
void SystemInformationImplementation::RunCPUCheck()
|
|
|
{
|
|
{
|
|
|
-#ifdef WIN32
|
|
|
|
|
|
|
+#ifdef _WIN32
|
|
|
// Check to see if this processor supports CPUID.
|
|
// Check to see if this processor supports CPUID.
|
|
|
bool supportsCPUID = DoesCPUSupportCPUID();
|
|
bool supportsCPUID = DoesCPUSupportCPUID();
|
|
|
|
|
|
|
@@ -2056,7 +2056,7 @@ bool SystemInformationImplementation::DoesCPUSupportFeature(long int dwFeature)
|
|
|
|
|
|
|
|
void SystemInformationImplementation::Delay(unsigned int uiMS)
|
|
void SystemInformationImplementation::Delay(unsigned int uiMS)
|
|
|
{
|
|
{
|
|
|
-#ifdef WIN32
|
|
|
|
|
|
|
+#ifdef _WIN32
|
|
|
LARGE_INTEGER Frequency, StartCounter, EndCounter;
|
|
LARGE_INTEGER Frequency, StartCounter, EndCounter;
|
|
|
__int64 x;
|
|
__int64 x;
|
|
|
|
|
|
|
@@ -2339,7 +2339,7 @@ bool SystemInformationImplementation::RetrieveClassicalCPUCacheDetails()
|
|
|
case 13: TLBCacheUnit = ((TLBCacheData[3] & 0x00FF0000) >> 16); break;
|
|
case 13: TLBCacheUnit = ((TLBCacheData[3] & 0x00FF0000) >> 16); break;
|
|
|
case 14: TLBCacheUnit = ((TLBCacheData[3] & 0xFF000000) >> 24); break;
|
|
case 14: TLBCacheUnit = ((TLBCacheData[3] & 0xFF000000) >> 24); break;
|
|
|
|
|
|
|
|
- // Default case - an error has occured.
|
|
|
|
|
|
|
+ // Default case - an error has occurred.
|
|
|
default: return false;
|
|
default: return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -2401,7 +2401,7 @@ bool SystemInformationImplementation::RetrieveClassicalCPUCacheDetails()
|
|
|
case 0x96: STORE_TLBCACHE_INFO (TLBCode, 262144); break; // <-- FIXME: IA-64 Only
|
|
case 0x96: STORE_TLBCACHE_INFO (TLBCode, 262144); break; // <-- FIXME: IA-64 Only
|
|
|
case 0x9b: STORE_TLBCACHE_INFO (TLBCode, 262144); break; // <-- FIXME: IA-64 Only
|
|
case 0x9b: STORE_TLBCACHE_INFO (TLBCode, 262144); break; // <-- FIXME: IA-64 Only
|
|
|
|
|
|
|
|
- // Default case - an error has occured.
|
|
|
|
|
|
|
+ // Default case - an error has occurred.
|
|
|
default: return false;
|
|
default: return false;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|