Skip to content

Commit acf30de

Browse files
committed
Refine documentation
1 parent ad8556a commit acf30de

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

include/xsimd/config/xsimd_cpu_features_x86.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -238,14 +238,14 @@ namespace xsimd
238238
{
239239
#if XSIMD_TARGET_X86
240240

241-
inline cpuid_reg_t get_cpuid(int level, int count) noexcept
241+
inline cpuid_reg_t get_cpuid(int leaf, int subleaf) noexcept
242242
{
243243
cpuid_reg_t reg = {};
244244
#if defined(_MSC_VER)
245-
__cpuidex(reg.data(), level, count);
245+
__cpuidex(reg.data(), leaf, subleaf);
246246

247247
#elif defined(__INTEL_COMPILER)
248-
__cpuid(reg.data(), level);
248+
__cpuid(reg.data(), leaf);
249249

250250
#elif defined(__GNUC__) || defined(__clang__)
251251

@@ -255,12 +255,12 @@ namespace xsimd
255255
"cpuid\n\t"
256256
"xchg{l}\t{%%}ebx, %1\n\t"
257257
: "=a"(reg[0]), "=r"(reg[1]), "=c"(reg[2]), "=d"(reg[3])
258-
: "0"(level), "2"(count));
258+
: "0"(leaf), "2"(subleaf));
259259

260260
#else
261261
__asm__("cpuid\n\t"
262262
: "=a"(reg[0]), "=b"(reg[1]), "=c"(reg[2]), "=d"(reg[3])
263-
: "0"(level), "2"(count));
263+
: "0"(leaf), "2"(subleaf));
264264
#endif
265265
#endif
266266
return reg;
@@ -294,7 +294,7 @@ namespace xsimd
294294

295295
#else // XSIMD_TARGET_X86
296296

297-
inline cpuid_reg_t get_cpuid(int level, int count) noexcept
297+
inline cpuid_reg_t get_cpuid(int /* leaf */, int /* subleaf */) noexcept
298298
{
299299
return {}; // All bits to zero
300300
}

0 commit comments

Comments
 (0)