# HG changeset patch # User diego # Date 1191320542 0 # Node ID ed8e08db68c6084e69a0a306d266aeec20bb1089 # Parent 55ed6dc5d47671988967dd30decfea0911fba2e1 Remove pointless HAVE_ALTIVEC #ifdefs from a file that only contains AltiVec optimizations and no general PPC optimizations. Instead make the file be compiled conditional to HAVE_ALTIVEC. diff -r 55ed6dc5d476 -r ed8e08db68c6 Makefile --- a/Makefile Mon Oct 01 14:23:36 2007 +0000 +++ b/Makefile Tue Oct 02 10:22:22 2007 +0000 @@ -394,7 +394,6 @@ alpha/motion_est_mvi_asm.o \ OBJS-$(ARCH_POWERPC) += ppc/dsputil_ppc.o \ - ppc/mpegvideo_ppc.o \ OBJS-$(HAVE_MMI) += ps2/dsputil_mmi.o \ ps2/idct_mmi.o \ @@ -412,6 +411,7 @@ ppc/idct_altivec.o \ ppc/int_altivec.o \ ppc/mpegvideo_altivec.o \ + ppc/mpegvideo_ppc.o \ ifeq ($(HAVE_ALTIVEC),yes) OBJS-$(CONFIG_H264_DECODER) += ppc/h264_altivec.o diff -r 55ed6dc5d476 -r ed8e08db68c6 ppc/mpegvideo_ppc.c --- a/ppc/mpegvideo_ppc.c Mon Oct 01 14:23:36 2007 +0000 +++ b/ppc/mpegvideo_ppc.c Tue Oct 02 10:22:22 2007 +0000 @@ -21,10 +21,7 @@ #include "dsputil.h" #include "mpegvideo.h" #include - -#ifdef HAVE_ALTIVEC #include "dsputil_altivec.h" -#endif extern int dct_quantize_altivec(MpegEncContext *s, DCTELEM *block, int n, @@ -38,9 +35,6 @@ void MPV_common_init_ppc(MpegEncContext *s) { -#ifdef HAVE_ALTIVEC - if (has_altivec()) - { if (s->avctx->lowres==0) { if ((s->avctx->idct_algo == FF_IDCT_AUTO) || @@ -78,10 +72,5 @@ s->dct_unquantize_h263_intra = dct_unquantize_h263_altivec; s->dct_unquantize_h263_inter = dct_unquantize_h263_altivec; } - } else -#endif - { - /* Non-AltiVec PPC optimisations here */ - } }