aboutsummaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorJuergen Lock <nox@FreeBSD.org>2012-08-27 22:18:55 +0000
committerJuergen Lock <nox@FreeBSD.org>2012-08-27 22:18:55 +0000
commitc21090625ef5cb6bb5f1e105658b129ce8b1b32e (patch)
tree2eed204e134445f3f436c4f0eaad3630978f48fd /multimedia
parentb93d8536a6df55f760d737eba0a639a245940f50 (diff)
downloadports-c21090625ef5cb6bb5f1e105658b129ce8b1b32e.tar.gz
ports-c21090625ef5cb6bb5f1e105658b129ce8b1b32e.zip
Notes
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/libxine/files/patch-src-post-goom-mmx.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/multimedia/libxine/files/patch-src-post-goom-mmx.h b/multimedia/libxine/files/patch-src-post-goom-mmx.h
new file mode 100644
index 000000000000..091d41caeeae
--- /dev/null
+++ b/multimedia/libxine/files/patch-src-post-goom-mmx.h
@@ -0,0 +1,32 @@
+--- src/post/goom/mmx.h.orig
++++ src/post/goom/mmx.h
+@@ -721,17 +721,29 @@ void zoom_filter_xmmx (int prevX, int pr
+ */
+ #ifdef MMX_TRACE
+
++#ifdef __clang__
++#define emms() \
++ { \
++ printf("emms()\n"); \
++ __asm__ __volatile__ ("emms"); \
++ }
++#else
+ #define emms() \
+ { \
+ printf("emms()\n"); \
+ __asm__ __volatile__ ("emms" \
+ "st(1)","st(2)","st(3)","st(4)","st(5)","st(6)","st(7)"); \
+ }
++#endif
+
+ #else
+
++#ifdef __clang__
++#define emms() __asm__ __volatile__ ("emms")
++#else
+ #define emms() __asm__ __volatile__ ("emms"::: \
+ "st(1)","st(2)","st(3)","st(4)","st(5)","st(6)","st(7)")
++#endif
+
+ #endif
+