mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-07 02:09:52 +03:00
add additional logging information
This commit is contained in:
@@ -365,6 +365,23 @@ const tchar* GetProcessorVendorId()
|
||||
#endif
|
||||
}
|
||||
|
||||
// Return the build's architecture
|
||||
const tchar* GetProcessorArchName()
|
||||
{
|
||||
#if defined( __x86_64__) || defined(_M_X64)
|
||||
return "amd64";
|
||||
#elif defined(__i386__) || defined(_X86_) || defined(_M_IX86)
|
||||
return "i386";
|
||||
#elif defined __aarch64__
|
||||
return "aarch64";
|
||||
#elif defined __arm__ || defined _M_ARM
|
||||
return "arm";
|
||||
#else
|
||||
#error "Unknown architecture"
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
// Returns non-zero if Hyper-Threading Technology is supported on the processors and zero if not. This does not mean that
|
||||
// Hyper-Threading Technology is necessarily enabled.
|
||||
static bool HTSupported(void)
|
||||
|
||||
Reference in New Issue
Block a user