[FFmpeg-cvslog] x86: ff_get_cpu_flags_x86(): Avoid a pointless variable indirection

Diego Biurrun git at videolan.org
Fri Oct 5 16:57:04 CEST 2012


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Oct  4 00:40:05 2012 +0200| [cc5e9e5ff052fe31aa757de79f2d11fb21df3fba] | committer: Diego Biurrun

x86: ff_get_cpu_flags_x86(): Avoid a pointless variable indirection

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cc5e9e5ff052fe31aa757de79f2d11fb21df3fba
---

 libavutil/x86/cpu.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/libavutil/x86/cpu.c b/libavutil/x86/cpu.c
index 9acc867..9cf68e4 100644
--- a/libavutil/x86/cpu.c
+++ b/libavutil/x86/cpu.c
@@ -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);



More information about the ffmpeg-cvslog mailing list