projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e164c0
)
x86: ff_get_cpu_flags_x86(): Avoid a pointless variable indirection
author
Diego Biurrun
<diego@biurrun.de>
Wed, 3 Oct 2012 22:40:05 +0000
(
00:40
+0200)
committer
Diego Biurrun
<diego@biurrun.de>
Thu, 4 Oct 2012 15:58:42 +0000
(17:58 +0200)
libavutil/x86/cpu.c
patch
|
blob
|
history
diff --git
a/libavutil/x86/cpu.c
b/libavutil/x86/cpu.c
index
9acc867
..
9cf68e4
100644
(file)
--- 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);