]> git.sesse.net Git - ffmpeg/commitdiff
x86: ff_get_cpu_flags_x86(): Avoid a pointless variable indirection
authorDiego Biurrun <diego@biurrun.de>
Wed, 3 Oct 2012 22:40:05 +0000 (00:40 +0200)
committerDiego Biurrun <diego@biurrun.de>
Thu, 4 Oct 2012 15:58:42 +0000 (17:58 +0200)
libavutil/x86/cpu.c

index 9acc86755d68260647f842df7957faa056dc6998..9cf68e4c98b68230d5c838d15186e7df640f8ea4 100644 (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);