move cpu arch stuff to separate function

This commit is contained in:
berkeviktor@aol.com
2011-05-30 21:15:39 +02:00
parent bfb6120116
commit b85f311ddd
3 changed files with 20 additions and 14 deletions

View File

@@ -647,6 +647,24 @@ get_mhz (void)
return 0; /* fails on Win9x */
}
int
get_cpu_arch (void)
{
SYSTEM_INFO si;
unsigned short int cpu_arch;
GetSystemInfo (&si);
if (si.wProcessorArchitecture == 9)
{
return 64;
}
else
{
return 86;
}
}
char *
get_cpu_str (void)
{