1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

- Sync goom emms clang patch with the one from

multimedia/gstreamer-plugins-good, removing #ifdef __clang__.
- No PORTREVISION bump as there should be no functional change.

Submitted by:	dim
Obtained from:	multimedia/gstreamer-plugins-good/files/patch-gst_goom_mmx.h
This commit is contained in:
Juergen Lock 2013-11-28 17:18:14 +00:00
parent 8c2c7ef1b0
commit 5a07305282
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=335109

View File

@ -1,32 +1,18 @@
--- 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() \
@@ -725,13 +725,13 @@ void zoom_filter_xmmx (int prevX, int pr
{ \
printf("emms()\n"); \
__asm__ __volatile__ ("emms" \
"st(1)","st(2)","st(3)","st(4)","st(5)","st(6)","st(7)"); \
- "st(1)","st(2)","st(3)","st(4)","st(5)","st(6)","st(7)"); \
+ "st","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
- "st(1)","st(2)","st(3)","st(4)","st(5)","st(6)","st(7)")
+ "st","st(1)","st(2)","st(3)","st(4)","st(5)","st(6)","st(7)")
#endif