diff options
author | berkeviktor@aol.com <berkeviktor@aol.com> | 2011-05-30 21:15:39 +0200 |
---|---|---|
committer | berkeviktor@aol.com <berkeviktor@aol.com> | 2011-05-30 21:15:39 +0200 |
commit | b85f311ddd7a1275e49289ba935617a163062790 (patch) | |
tree | 01ef2482433adcd7ab748eb4cc7561214c294b26 /src/common/util.c | |
parent | bfb61201168844e8432b328332b431d8dbca2a2a (diff) |
move cpu arch stuff to separate function
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/common/util.c b/src/common/util.c index 67168a5f..5677e82a 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -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) { |