Revision 6e1c66bc postproc/yuv2rgb.c

View differences:

postproc/yuv2rgb.c
156 156
};
157 157
#endif
158 158

  
159
#ifdef ARCH_X86
159
#if defined(ARCH_X86) || defined(ARCH_X86_64)
160 160

  
161 161
/* hope these constant values are cache line aligned */
162 162
uint64_t attribute_used __attribute__((aligned(8))) mmx_00ffw = 0x00ff00ff00ff00ffULL;
......
183 183
	0x0004000400040004LL,};
184 184

  
185 185
#undef HAVE_MMX
186
#undef ARCH_X86
187 186

  
188 187
//MMX versions
189 188
#undef RENAME
190 189
#define HAVE_MMX
191 190
#undef HAVE_MMX2
192 191
#undef HAVE_3DNOW
193
#define ARCH_X86
194 192
#define RENAME(a) a ## _MMX
195 193
#include "yuv2rgb_template.c"
196 194

  
......
199 197
#define HAVE_MMX
200 198
#define HAVE_MMX2
201 199
#undef HAVE_3DNOW
202
#define ARCH_X86
203 200
#define RENAME(a) a ## _MMX2
204 201
#include "yuv2rgb_template.c"
205 202

  
......
583 580

  
584 581
SwsFunc yuv2rgb_get_func_ptr (SwsContext *c)
585 582
{
586
#ifdef ARCH_X86
583
#if defined(ARCH_X86) || defined(ARCH_X86_64)
587 584
    if(c->flags & SWS_CPU_CAPS_MMX2){
588 585
	switch(c->dstFormat){
589 586
	case IMGFMT_BGR32: return yuv420_rgb32_MMX2;

Also available in: Unified diff