Mercurial > libavcodec.hg
diff ppc/vp8dsp_altivec.c @ 12473:06abedae2906 libavcodec
Merge has_altivec() function into mm_support(), remove it and use
mm_support() instead.
Reduce complexity and simplify pending move to libavutil.
author | stefano |
---|---|
date | Wed, 08 Sep 2010 10:02:40 +0000 |
parents | f96187e79438 |
children | 9fef0a8ddd63 |
line wrap: on
line diff
--- a/ppc/vp8dsp_altivec.c Wed Sep 08 05:51:31 2010 +0000 +++ b/ppc/vp8dsp_altivec.c Wed Sep 08 10:02:40 2010 +0000 @@ -265,7 +265,7 @@ av_cold void ff_vp8dsp_init_altivec(VP8DSPContext *c) { - if (!has_altivec()) + if (!(mm_support() & AV_CPU_FLAG_ALTIVEC)) return; c->put_vp8_epel_pixels_tab[0][0][0] = put_vp8_pixels16_altivec;