/[pcsx2_0.9.7]/trunk/common/src/x86emitter/WinCpuDetect.cpp
ViewVC logotype

Diff of /trunk/common/src/x86emitter/WinCpuDetect.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/common/src/x86emitter/WinCpuDetect.cpp	2010/09/07 03:24:11	31
+++ trunk/common/src/x86emitter/WinCpuDetect.cpp	2010/09/07 11:08:22	62
@@ -17,17 +17,17 @@
 #include "PrecompiledHeader.h"
 #include "cpudetect_internal.h"
 
-void CountLogicalCores( int LogicalCoresPerPhysicalCPU, int PhysicalCoresPerPhysicalCPU )
+void x86capabilities::CountLogicalCores()
 {
 	DWORD vProcessCPUs;
 	DWORD vSystemCPUs;
 
-	x86caps.LogicalCores = 1;
+	LogicalCores = 1;
 
 	if( !GetProcessAffinityMask (GetCurrentProcess (),
 		&vProcessCPUs, &vSystemCPUs) ) return;
 
-	int CPUs = 0;
+	uint CPUs = 0;
 	DWORD bit;
 
 	for (bit = 1; bit != 0; bit <<= 1)
@@ -36,11 +36,11 @@
 			CPUs++;
 	}
 
-	x86caps.LogicalCores = CPUs;
+	LogicalCores = CPUs;
 	if( LogicalCoresPerPhysicalCPU > CPUs) // for 1-socket HTT-disabled machines
 		LogicalCoresPerPhysicalCPU = CPUs;
 
-	x86caps.PhysicalCores = ( CPUs / LogicalCoresPerPhysicalCPU ) * PhysicalCoresPerPhysicalCPU;
+	PhysicalCores = ( CPUs / LogicalCoresPerPhysicalCPU ) * PhysicalCoresPerPhysicalCPU;
 }
 
 bool _test_instruction( void* pfnCall )

 

  ViewVC Help
Powered by ViewVC 1.1.22