diff options
Diffstat (limited to 'sci-libs/openblas/files/openblas-0.2.11-cpuid_x86.patch')
-rw-r--r-- | sci-libs/openblas/files/openblas-0.2.11-cpuid_x86.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/sci-libs/openblas/files/openblas-0.2.11-cpuid_x86.patch b/sci-libs/openblas/files/openblas-0.2.11-cpuid_x86.patch deleted file mode 100644 index c6f299132..000000000 --- a/sci-libs/openblas/files/openblas-0.2.11-cpuid_x86.patch +++ /dev/null @@ -1,27 +0,0 @@ ---- openblas-9999-orig/cpuid_x86.c 2014-02-23 15:25:22.199394761 +1100 -+++ openblas-9999/cpuid_x86.c 2014-02-23 16:41:02.727372869 +1100 -@@ -57,9 +57,23 @@ - void cpuid(int op, int *eax, int *ebx, int *ecx, int *edx); - #else - static inline void cpuid(int op, int *eax, int *ebx, int *ecx, int *edx){ -+#if __x86_64 - __asm__ __volatile__ - ("cpuid": "=a" (*eax), "=b" (*ebx), "=c" (*ecx), "=d" (*edx) : "a" (op) : "cc"); -- -+#else -+ __asm volatile( -+ "push %%ebx\n\t" -+ "cpuid\n\t" -+ "mov %%ebx, (%4)\n\t" -+ "pop %%ebx" -+ :"=a" (*eax), -+ "=c" (*ecx), -+ "=d" (*edx) -+ :"a" (op), -+ "cc" -+ "S" (ebx) -+ :"memory"); -+#endif - } - #endif - |