File MPlayer-amd64-detection.patch of Package MPlayer

--- a/cpuinfo.c
+++ b/cpuinfo.c
@@ -53,18 +53,8 @@ static cpuid_regs_t
 cpuid(int func, int sub) {
     cpuid_regs_t regs;
 #define CPUID   ".byte 0x0f, 0xa2; "
-#ifdef __x86_64__
-    __asm__("mov %%rbx, %%rsi\n\t"
-#else
-    __asm__("mov %%ebx, %%esi\n\t"
-#endif
-            CPUID"\n\t"
-#ifdef __x86_64__
-            "xchg %%rsi, %%rbx\n\t"
-#else
-            "xchg %%esi, %%ebx\n\t"
-#endif
-            : "=a" (regs.eax), "=S" (regs.ebx), "=c" (regs.ecx), "=d" (regs.edx)
+    asm(CPUID
+            : "=a" (regs.eax), "=b" (regs.ebx), "=c" (regs.ecx), "=d" (regs.edx)
             : "0" (func), "2" (sub));
     return regs;
 }
openSUSE Build Service is sponsored by