diff options
Diffstat (limited to 'gfx/cairo/pixman-intrin.patch')
-rw-r--r-- | gfx/cairo/pixman-intrin.patch | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gfx/cairo/pixman-intrin.patch b/gfx/cairo/pixman-intrin.patch index 66a4912cbd..1361f5c58e 100644 --- a/gfx/cairo/pixman-intrin.patch +++ b/gfx/cairo/pixman-intrin.patch @@ -1,14 +1,14 @@ diff --git a/gfx/cairo/libpixman/src/pixman-x86.c b/gfx/cairo/libpixman/src/pixman-x86.c --- a/gfx/cairo/libpixman/src/pixman-x86.c +++ b/gfx/cairo/libpixman/src/pixman-x86.c -@@ -104,16 +104,20 @@ have_cpuid (void) - - return !!result; +@@ -73,16 +73,20 @@ detect_cpu_features (void) + } #else - #error "Unknown compiler" + + #if defined (__GNUC__) + #include <cpuid.h> #endif - } +#ifdef _MSC_VER +#include <intrin.h> /* for __cpuid */ @@ -19,6 +19,6 @@ diff --git a/gfx/cairo/libpixman/src/pixman-x86.c b/gfx/cairo/libpixman/src/pixm uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d) { #if defined (__GNUC__) - - #if _PIXMAN_X86_64 - __asm__ volatile ( + *a = *b = *c = *d = 0; + __get_cpuid(feature, a, b, c, d); + #elif defined (_MSC_VER) |