Line 0
Link Here
|
|
|
1 |
--- IlmImf/ImfSystemSpecific.cpp.orig 2014-08-10 04:23:57.000000000 +0000 |
2 |
+++ IlmImf/ImfSystemSpecific.cpp 2014-12-15 17:11:36.000000000 +0000 |
3 |
@@ -35,6 +35,9 @@ |
4 |
#include "ImfSystemSpecific.h" |
5 |
#include "ImfNamespace.h" |
6 |
#include "OpenEXRConfig.h" |
7 |
+#if defined(IMF_HAVE_SSE2) && defined(__GNUC__) |
8 |
+#include <cpuid.h> |
9 |
+#endif |
10 |
|
11 |
OPENEXR_IMF_INTERNAL_NAMESPACE_SOURCE_ENTER |
12 |
|
13 |
@@ -44,11 +47,7 @@ |
14 |
// Helper functions for gcc + SSE enabled |
15 |
void cpuid(int n, int &eax, int &ebx, int &ecx, int &edx) |
16 |
{ |
17 |
- __asm__ __volatile__ ( |
18 |
- "cpuid" |
19 |
- : /* Output */ "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx) |
20 |
- : /* Input */ "a"(n) |
21 |
- : /* Clobber */); |
22 |
+ __cpuid(n, eax, ebx, ecx, edx); |
23 |
} |
24 |
|
25 |
#else // IMF_HAVE_SSE2 && __GNUC__ |