We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4050d94 commit 8052cebCopy full SHA for 8052ceb
include/xsimd/config/xsimd_cpu_features_x86.hpp
@@ -523,16 +523,11 @@ namespace xsimd
523
inline cpuid_reg_t x86_cpuid(int leaf, int subleaf) noexcept
524
{
525
cpuid_reg_t reg = {};
526
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) || defined(__INTEL_COMPILER)
527
int buf[4];
528
__cpuidex(buf, leaf, subleaf);
529
std::memcpy(reg.data(), buf, sizeof(buf));
530
531
-#elif defined(__INTEL_COMPILER)
532
- int buf[4];
533
- __cpuid(buf, leaf);
534
- std::memcpy(reg.data(), buf, sizeof(buf));
535
-
536
#elif defined(__GNUC__) || defined(__clang__)
537
538
#if defined(__i386__) && defined(__PIC__)
0 commit comments