summaryrefslogtreecommitdiff
path: root/libswscale/rgb2rgb_template.c
diff options
context:
space:
mode:
authorNigel Pearson <nigel@ind.tansu.com.au>2006-11-07 07:07:05 +0000
committerGuillaume Poirier <gpoirier@mplayerhq.hu>2006-11-07 07:07:05 +0000
commitd904b5fc66e675ac02e27f5420466df6cb683d62 (patch)
tree347a79601f2542cdbb7bd6f737bfdc3cf80eb18a /libswscale/rgb2rgb_template.c
parent7d7912c34b67539cd64dea481eb2261f5215c335 (diff)
Fix MacIntel build: "/nop" is illegal on Apple's older version of GAS
Patch by Nigel Pearson % nigel A ind P tansu P com P au % Original thread: Date: Nov 6, 2006 10:43 PM Subject: [Ffmpeg-devel] [PATCH] swscale uses /nop, illegal for old versions of GAS Originally committed as revision 20740 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/rgb2rgb_template.c')
-rw-r--r--libswscale/rgb2rgb_template.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/libswscale/rgb2rgb_template.c b/libswscale/rgb2rgb_template.c
index 04ccf1f681..0dbc657ced 100644
--- a/libswscale/rgb2rgb_template.c
+++ b/libswscale/rgb2rgb_template.c
@@ -60,8 +60,8 @@
#define PREFETCH "#"
#define PREFETCHW "#"
#else
-#define PREFETCH "/nop"
-#define PREFETCHW "/nop"
+#define PREFETCH " # nop"
+#define PREFETCHW " # nop"
#endif
#endif
@@ -77,11 +77,7 @@
#define SFENCE "sfence"
#else
#define MOVNTQ "movq"
-#ifdef __APPLE__
-#define SFENCE "#"
-#else
-#define SFENCE "/nop"
-#endif
+#define SFENCE " # nop"
#endif
static inline void RENAME(rgb24to32)(const uint8_t *src,uint8_t *dst,long src_size)