Projects
home:DarkWav
MPlayer
MPlayer-amd64-detection.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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; }
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.