# HG changeset patch # User diego # Date 1187996510 0 # Node ID f644e7c903801150c7fa379e85b98459743d4f0d # Parent e831a81fb25e73e1c718c4e2bfdac9b6dd049f78 Remove HAVE_ALTIVEC preprocessor directives that are only compiled when AltiVec is enabled anyway. diff -r e831a81fb25e -r f644e7c90380 ppc/dsputil_altivec.h --- a/ppc/dsputil_altivec.h Fri Aug 24 15:42:50 2007 +0000 +++ b/ppc/dsputil_altivec.h Fri Aug 24 23:01:50 2007 +0000 @@ -25,8 +25,6 @@ #include "dsputil_ppc.h" -#ifdef HAVE_ALTIVEC - extern int has_altivec(void); void put_pixels16_altivec(uint8_t *block, const uint8_t *pixels, int line_size, int h); @@ -112,6 +110,4 @@ return vec_perm(first, second, mask); } -#endif /* HAVE_ALTIVEC */ - #endif /* DSPUTIL_ALTIVEC_H */ diff -r e831a81fb25e -r f644e7c90380 ppc/h264_altivec.c --- a/ppc/h264_altivec.c Fri Aug 24 15:42:50 2007 +0000 +++ b/ppc/h264_altivec.c Fri Aug 24 23:01:50 2007 +0000 @@ -868,7 +868,6 @@ void dsputil_h264_init_ppc(DSPContext* c, AVCodecContext *avctx) { -#ifdef HAVE_ALTIVEC if (has_altivec()) { c->put_h264_chroma_pixels_tab[0] = put_h264_chroma_mc8_altivec; c->put_no_rnd_h264_chroma_pixels_tab[0] = put_no_rnd_h264_chroma_mc8_altivec; @@ -899,12 +898,5 @@ dspfunc(put_h264_qpel, 0, 16); dspfunc(avg_h264_qpel, 0, 16); #undef dspfunc - - } else -#endif /* HAVE_ALTIVEC */ - { - // Non-AltiVec PPC optimisations - - // ... pending ... } }