comparison libswscale/rgb2rgb_template.c @ 20724:b8fe18a742ce

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
author gpoirier
date Tue, 07 Nov 2006 07:07:05 +0000
parents aca9e9783f67
children 1f2ba24b4e47
comparison
equal deleted inserted replaced
20723:18ba5bc68f40 20724:b8fe18a742ce
58 #else 58 #else
59 #ifdef __APPLE__ 59 #ifdef __APPLE__
60 #define PREFETCH "#" 60 #define PREFETCH "#"
61 #define PREFETCHW "#" 61 #define PREFETCHW "#"
62 #else 62 #else
63 #define PREFETCH "/nop" 63 #define PREFETCH " # nop"
64 #define PREFETCHW "/nop" 64 #define PREFETCHW " # nop"
65 #endif 65 #endif
66 #endif 66 #endif
67 67
68 #ifdef HAVE_3DNOW 68 #ifdef HAVE_3DNOW
69 /* On K6 femms is faster of emms. On K7 femms is directly mapped on emms. */ 69 /* On K6 femms is faster of emms. On K7 femms is directly mapped on emms. */
75 #ifdef HAVE_MMX2 75 #ifdef HAVE_MMX2
76 #define MOVNTQ "movntq" 76 #define MOVNTQ "movntq"
77 #define SFENCE "sfence" 77 #define SFENCE "sfence"
78 #else 78 #else
79 #define MOVNTQ "movq" 79 #define MOVNTQ "movq"
80 #ifdef __APPLE__ 80 #define SFENCE " # nop"
81 #define SFENCE "#"
82 #else
83 #define SFENCE "/nop"
84 #endif
85 #endif 81 #endif
86 82
87 static inline void RENAME(rgb24to32)(const uint8_t *src,uint8_t *dst,long src_size) 83 static inline void RENAME(rgb24to32)(const uint8_t *src,uint8_t *dst,long src_size)
88 { 84 {
89 uint8_t *dest = dst; 85 uint8_t *dest = dst;