Skip to content

Commit 8052ceb

Browse files
committed
Fix subleaf in Intel CPUID
1 parent 4050d94 commit 8052ceb

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

include/xsimd/config/xsimd_cpu_features_x86.hpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -523,16 +523,11 @@ namespace xsimd
523523
inline cpuid_reg_t x86_cpuid(int leaf, int subleaf) noexcept
524524
{
525525
cpuid_reg_t reg = {};
526-
#if defined(_MSC_VER)
526+
#if defined(_MSC_VER) || defined(__INTEL_COMPILER)
527527
int buf[4];
528528
__cpuidex(buf, leaf, subleaf);
529529
std::memcpy(reg.data(), buf, sizeof(buf));
530530

531-
#elif defined(__INTEL_COMPILER)
532-
int buf[4];
533-
__cpuid(buf, leaf);
534-
std::memcpy(reg.data(), buf, sizeof(buf));
535-
536531
#elif defined(__GNUC__) || defined(__clang__)
537532

538533
#if defined(__i386__) && defined(__PIC__)

0 commit comments

Comments
 (0)