diff options
author | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-07 07:07:05 +0000 |
---|---|---|
committer | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-07 07:07:05 +0000 |
commit | 1bade46a88990274616d378200998809de2c8fb0 (patch) | |
tree | 3a25521737e0e6d5e6b2b7ebb8aeefed4d07a770 | |
parent | 3829ecb1a2f4f3dfcb2a2c319e404b7eb5b7eb6d (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
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20740 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libswscale/rgb2rgb_template.c | 10 | ||||
-rw-r--r-- | libswscale/swscale_template.c | 6 |
2 files changed, 6 insertions, 10 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) diff --git a/libswscale/swscale_template.c b/libswscale/swscale_template.c index 773f8f7811..d0f8d7d162 100644 --- a/libswscale/swscale_template.c +++ b/libswscale/swscale_template.c @@ -43,14 +43,14 @@ #define PREFETCH "prefetchnta" #define PREFETCHW "prefetcht0" #else -#define PREFETCH "/nop" -#define PREFETCHW "/nop" +#define PREFETCH " # nop" +#define PREFETCHW " # nop" #endif #ifdef HAVE_MMX2 #define SFENCE "sfence" #else -#define SFENCE "/nop" +#define SFENCE " # nop" #endif #ifdef HAVE_MMX2 |