1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00

x86: ff_get_cpu_flags_x86(): Avoid a pointless variable indirection

This commit is contained in:
Diego Biurrun 2012-10-04 00:40:05 +02:00
parent 1e164c0bcc
commit cc5e9e5ff0

View File

@ -108,10 +108,7 @@ int ff_get_cpu_flags_x86(void)
return 0; /* CPUID not supported */ return 0; /* CPUID not supported */
#endif #endif
cpuid(0, max_std_level, ebx, ecx, edx); cpuid(0, max_std_level, vendor.i[0], vendor.i[2], vendor.i[1]);
vendor.i[0] = ebx;
vendor.i[1] = edx;
vendor.i[2] = ecx;
if (max_std_level >= 1) { if (max_std_level >= 1) {
cpuid(1, eax, ebx, ecx, std_caps); cpuid(1, eax, ebx, ecx, std_caps);