mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Add CPUID output to self-test.
This commit is contained in:
parent
3f4809457f
commit
ad692b07c3
1 changed files with 13 additions and 0 deletions
|
@ -379,6 +379,19 @@ extern "C" const char *ZTT_general()
|
|||
ZT_T_PRINTF("OK" ZT_EOL_S);
|
||||
}
|
||||
|
||||
#ifdef ZT_ARCH_X64
|
||||
ZT_T_PRINTF("[general] X64 CPUID: aes=%d avx=%d avx2=%d avx512f=%d fsrm=%d rdrand=%d sha=%d vaes=%d vpclmulqdq=%d" ZT_EOL_S,
|
||||
Utils::CPUID.aes,
|
||||
Utils::CPUID.avx,
|
||||
Utils::CPUID.avx2,
|
||||
Utils::CPUID.avx512f,
|
||||
Utils::CPUID.fsrm,
|
||||
Utils::CPUID.rdrand,
|
||||
Utils::CPUID.sha,
|
||||
Utils::CPUID.vaes,
|
||||
Utils::CPUID.vpclmulqdq);
|
||||
#endif
|
||||
|
||||
{
|
||||
ZT_T_PRINTF("[general] Testing Utils::countBits() functions... ");
|
||||
uint32_t i32 = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue