Commits
Marcus Calhoun-Lopez authored 2973d4df9d7
1 + | --- IlmImf/ImfSystemSpecific.cpp.orig 2014-08-09 21:23:57.000000000 -0700 |
2 + | +++ IlmImf/ImfSystemSpecific.cpp 2016-05-24 05:49:44.000000000 -0700 |
3 + | |
4 + | void cpuid(int n, int &eax, int &ebx, int &ecx, int &edx) |
5 + | { |
6 + | __asm__ __volatile__ ( |
7 + | - "cpuid" |
8 + | - : /* Output */ "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx) |
9 + | + "mov %%ebx, %%edi\n" |
10 + | + "cpuid\n" |
11 + | + "xchg %%edi, %%ebx" |
12 + | + : /* Output */ "=a"(eax), "=D"(ebx), "=c"(ecx), "=d"(edx) |
13 + | : /* Input */ "a"(n) |
14 + | : /* Clobber */); |
15 + | } |