diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-08-05 10:00:54 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-08-05 10:00:54 +0000 |
commit | c869e5d1b14360ec9c3a1f7c6e014e7595f4cbb0 (patch) | |
tree | 477891e79704792e1c5e82bf4a7b8da4f9d5f28e /libswscale/yuv2rgb.c | |
parent | 105438642b3553efd46411f7dbeef17c6aed67a1 (diff) | |
download | mpv-c869e5d1b14360ec9c3a1f7c6e014e7595f4cbb0.tar.bz2 mpv-c869e5d1b14360ec9c3a1f7c6e014e7595f4cbb0.tar.xz |
Do not assemble MMX, MMX2 or 3DNOW code unconditionally on X86 and X86_64.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19339 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale/yuv2rgb.c')
-rw-r--r-- | libswscale/yuv2rgb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c index 3758f1b58c..8d9a2ac943 100644 --- a/libswscale/yuv2rgb.c +++ b/libswscale/yuv2rgb.c @@ -154,7 +154,7 @@ const uint8_t __attribute__((aligned(8))) dither_8x8_220[8][8]={ }; #endif -#if defined(ARCH_X86) || defined(ARCH_X86_64) +#ifdef HAVE_MMX /* hope these constant values are cache line aligned */ uint64_t attribute_used __attribute__((aligned(8))) mmx_00ffw = 0x00ff00ff00ff00ffULL; @@ -578,7 +578,7 @@ EPILOG(1) SwsFunc yuv2rgb_get_func_ptr (SwsContext *c) { -#if defined(ARCH_X86) || defined(ARCH_X86_64) +#if defined(HAVE_MMX2) || defined(HAVE_MMX) if(c->flags & SWS_CPU_CAPS_MMX2){ switch(c->dstFormat){ case IMGFMT_BGR32: return yuv420_rgb32_MMX2; |