Mercurial > mplayer.hg
comparison libmpeg2/motion_comp_mmx.c @ 30255:e41a2492e665
Avoid linking in assembler-optimized code that will never be used.
author | reimar |
---|---|
date | Tue, 12 Jan 2010 22:21:21 +0000 |
parents | 25337a2147e7 |
children |
comparison
equal
deleted
inserted
replaced
30254:00300a5f2638 | 30255:e41a2492e665 |
---|---|
34 | 34 |
35 #define CPU_MMXEXT 0 | 35 #define CPU_MMXEXT 0 |
36 #define CPU_3DNOW 1 | 36 #define CPU_3DNOW 1 |
37 | 37 |
38 | 38 |
39 #if HAVE_MMX | |
39 /* MMX code - needs a rewrite */ | 40 /* MMX code - needs a rewrite */ |
40 | 41 |
41 /* | 42 /* |
42 * Motion Compensation frequently needs to average values using the | 43 * Motion Compensation frequently needs to average values using the |
43 * formula (x+y+1)>>1. Both MMXEXT and 3Dnow include one instruction | 44 * formula (x+y+1)>>1. Both MMXEXT and 3Dnow include one instruction |
494 } | 495 } |
495 | 496 |
496 | 497 |
497 MPEG2_MC_EXTERN (mmx) | 498 MPEG2_MC_EXTERN (mmx) |
498 | 499 |
500 #endif /* HAVE_MMX */ | |
499 | 501 |
500 | 502 |
501 | 503 |
502 | 504 |
503 | 505 |
800 movq_r2m (mm0, *(dest+8)); | 802 movq_r2m (mm0, *(dest+8)); |
801 dest += stride; | 803 dest += stride; |
802 } while (--height); | 804 } while (--height); |
803 } | 805 } |
804 | 806 |
807 #if HAVE_MMX2 | |
808 | |
805 static void MC_avg_o_16_mmxext (uint8_t * dest, const uint8_t * ref, | 809 static void MC_avg_o_16_mmxext (uint8_t * dest, const uint8_t * ref, |
806 int stride, int height) | 810 int stride, int height) |
807 { | 811 { |
808 MC_avg1_16 (height, dest, ref, stride, CPU_MMXEXT); | 812 MC_avg1_16 (height, dest, ref, stride, CPU_MMXEXT); |
809 } | 813 } |
899 } | 903 } |
900 | 904 |
901 | 905 |
902 MPEG2_MC_EXTERN (mmxext) | 906 MPEG2_MC_EXTERN (mmxext) |
903 | 907 |
904 | 908 #endif /* HAVE_MMX2 */ |
909 | |
910 #if HAVE_AMD3DNOW | |
905 | 911 |
906 static void MC_avg_o_16_3dnow (uint8_t * dest, const uint8_t * ref, | 912 static void MC_avg_o_16_3dnow (uint8_t * dest, const uint8_t * ref, |
907 int stride, int height) | 913 int stride, int height) |
908 { | 914 { |
909 MC_avg1_16 (height, dest, ref, stride, CPU_3DNOW); | 915 MC_avg1_16 (height, dest, ref, stride, CPU_3DNOW); |
1000 } | 1006 } |
1001 | 1007 |
1002 | 1008 |
1003 MPEG2_MC_EXTERN (3dnow) | 1009 MPEG2_MC_EXTERN (3dnow) |
1004 | 1010 |
1011 #endif /* HAVE_AMD3DNOW */ | |
1012 | |
1005 #endif | 1013 #endif |