Mercurial > libavcodec.hg
changeset 5585:f644e7c90380 libavcodec
Remove HAVE_ALTIVEC preprocessor directives that are only compiled
when AltiVec is enabled anyway.
author | diego |
---|---|
date | Fri, 24 Aug 2007 23:01:50 +0000 |
parents | e831a81fb25e |
children | f065fc609145 |
files | ppc/dsputil_altivec.h ppc/h264_altivec.c |
diffstat | 2 files changed, 0 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- 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 */
--- 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 ... } }