Browse Source

avutil/x86/cpu: fix cpuid sub-leaf selection

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
lvqcl Michael Niedermayer 11 years ago
parent
commit
e58fc44649
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavutil/x86/cpu.c

+ 1
- 1
libavutil/x86/cpu.c View File

@@ -45,7 +45,7 @@
"cpuid \n\t" \
"xchg %%"REG_b", %%"REG_S \
: "=a" (eax), "=S" (ebx), "=c" (ecx), "=d" (edx) \
: "0" (index))
: "0" (index), "2"(0))

#define xgetbv(index, eax, edx) \
__asm__ (".byte 0x0f, 0x01, 0xd0" : "=a"(eax), "=d"(edx) : "c" (index))


Loading…
Cancel
Save