• R/O
  • HTTP
  • SSH
  • HTTPS

MUtilities: Commit

MUtilities development repository


Commit MetaInfo

Revision39adf6e7c0330316d7bf0ef96505e460039f996d (tree)
Time2019-08-09 22:54:07
AuthorLoRd_MuldeR <mulder2@gmx....>
CommiterLoRd_MuldeR

Log Message

Code refactoring.

Change Summary

Incremental Difference

--- a/src/CPUFeatures_Win32.cpp
+++ b/src/CPUFeatures_Win32.cpp
@@ -118,24 +118,11 @@ MUtils::CPUFetaures::cpu_info_t MUtils::CPUFetaures::detect(void)
118118 }
119119
120120 //Detect 64-Bit processors
121-#if (!(defined(_M_X64) || defined(_M_IA64)))
122- const IsWow64ProcessFun isWow64ProcessPtr = MUtils::Win32Utils::resolve<IsWow64ProcessFun>(QLatin1String("kernel32"), QLatin1String("IsWow64Process"));
123- if(isWow64ProcessPtr)
121+ if (OS::os_architecture() == OS::ARCH_X64)
124122 {
125- BOOL x64flag = FALSE;
126- if(isWow64ProcessPtr(GetCurrentProcess(), &x64flag))
127- {
128- if (x64flag)
129- {
130- features.x64 = true;
131- features.features |= FLAGS_X64; /*x86_64 implies SSE2*/
132- }
133- }
123+ features.x64 = true;
124+ features.features |= FLAGS_X64; /*x86_64 implies SSE2*/
134125 }
135-#else
136- features.x64 = true;
137- features.features |= FLAGS_X64;
138-#endif
139126
140127 //Make sure that (at least) the MMX flag has been set!
141128 if (!(features.features & FLAG_MMX))
Show on old repository browser