# HG changeset patch # User reimar # Date 1263334881 0 # Node ID e41a2492e665b0e3f8a06eb6aa01b8b4ef18bf07 # Parent 00300a5f26386dd6f9d77728f512e9c33e31b99f Avoid linking in assembler-optimized code that will never be used. diff -r 00300a5f2638 -r e41a2492e665 libmpeg2/motion_comp_mmx.c --- a/libmpeg2/motion_comp_mmx.c Tue Jan 12 21:16:01 2010 +0000 +++ b/libmpeg2/motion_comp_mmx.c Tue Jan 12 22:21:21 2010 +0000 @@ -36,6 +36,7 @@ #define CPU_3DNOW 1 +#if HAVE_MMX /* MMX code - needs a rewrite */ /* @@ -496,6 +497,7 @@ MPEG2_MC_EXTERN (mmx) +#endif /* HAVE_MMX */ @@ -802,6 +804,8 @@ } while (--height); } +#if HAVE_MMX2 + static void MC_avg_o_16_mmxext (uint8_t * dest, const uint8_t * ref, int stride, int height) { @@ -901,7 +905,9 @@ MPEG2_MC_EXTERN (mmxext) +#endif /* HAVE_MMX2 */ +#if HAVE_AMD3DNOW static void MC_avg_o_16_3dnow (uint8_t * dest, const uint8_t * ref, int stride, int height) @@ -1002,4 +1008,6 @@ MPEG2_MC_EXTERN (3dnow) +#endif /* HAVE_AMD3DNOW */ + #endif