Browse Source

x86: ff_get_cpu_flags_x86(): Avoid a pointless variable indirection

tags/n1.1
Diego Biurrun 13 years ago
parent
commit
cc5e9e5ff0
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      libavutil/x86/cpu.c

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

@@ -108,10 +108,7 @@ int ff_get_cpu_flags_x86(void)
return 0; /* CPUID not supported */
#endif

cpuid(0, max_std_level, ebx, ecx, edx);
vendor.i[0] = ebx;
vendor.i[1] = edx;
vendor.i[2] = ecx;
cpuid(0, max_std_level, vendor.i[0], vendor.i[2], vendor.i[1]);

if (max_std_level >= 1) {
cpuid(1, eax, ebx, ecx, std_caps);


Loading…
Cancel
Save