Mercurial > libavcodec.hg
diff ppc/dsputil_ppc.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 | a5ddb39627fd |
children | 9fef0a8ddd63 |
line wrap: on
line diff
--- a/ppc/dsputil_ppc.c Wed Sep 08 05:51:31 2010 +0000 +++ b/ppc/dsputil_ppc.c Wed Sep 08 10:02:40 2010 +0000 @@ -23,17 +23,6 @@ #include "libavcodec/dsputil.h" #include "dsputil_altivec.h" -int mm_support(void) -{ - int result = 0; -#if HAVE_ALTIVEC - if (has_altivec()) { - result |= AV_CPU_FLAG_ALTIVEC; - } -#endif /* result */ - return result; -} - /* ***** WARNING ***** WARNING ***** WARNING ***** */ /* clear_blocks_dcbz32_ppc will not work properly on PowerPC processors with a @@ -179,7 +168,7 @@ #if HAVE_ALTIVEC if(CONFIG_H264_DECODER) dsputil_h264_init_ppc(c, avctx); - if (has_altivec()) { + if (mm_support() & AV_CPU_FLAG_ALTIVEC) { dsputil_init_altivec(c, avctx); if(CONFIG_VC1_DECODER) vc1dsp_init_altivec(c, avctx);