diff options
author | Jack Lloyd <[email protected]> | 2021-05-21 20:24:43 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2021-05-21 20:24:43 -0400 |
commit | cb803e0c1b016428f9851eb9705498bc253bdb0f (patch) | |
tree | b6e3b4ca072b3537a89b53bd70f5bdd640e196e9 /src/lib/utils/cpuid/cpuid_x86.cpp | |
parent | 18821dbe1be8ba735a484592ade9d5910b67b4b9 (diff) |
Fix cast for ICC cpuid (GH #2748)
Diffstat (limited to 'src/lib/utils/cpuid/cpuid_x86.cpp')
-rw-r--r-- | src/lib/utils/cpuid/cpuid_x86.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/utils/cpuid/cpuid_x86.cpp b/src/lib/utils/cpuid/cpuid_x86.cpp index 88c8a9d8f..7b99575ab 100644 --- a/src/lib/utils/cpuid/cpuid_x86.cpp +++ b/src/lib/utils/cpuid/cpuid_x86.cpp @@ -29,12 +29,9 @@ namespace { void invoke_cpuid(uint32_t type, uint32_t out[4]) { -#if defined(BOTAN_BUILD_COMPILER_IS_MSVC) +#if defined(BOTAN_BUILD_COMPILER_IS_MSVC) || defined(BOTAN_BUILD_COMPILER_IS_INTEL) __cpuid((int*)out, type); -#elif defined(BOTAN_BUILD_COMPILER_IS_INTEL) - __cpuid(out, type); - #elif defined(BOTAN_TARGET_ARCH_IS_X86_64) && defined(BOTAN_USE_GCC_INLINE_ASM) asm("cpuid\n\t" : "=a" (out[0]), "=b" (out[1]), "=c" (out[2]), "=d" (out[3]) |