add additional logging information

This commit is contained in:
nillerusr
2022-09-05 12:54:41 +03:00
parent f11087b83a
commit 3e19d26a72
8 changed files with 139 additions and 17 deletions

View File

@@ -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)