aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ppc/dsputil_ppc.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-09-08 10:02:40 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-09-08 10:02:40 +0000
commitccf22d3ed181a14019d0c2f02f2ce30ac8e23ef5 (patch)
tree02f9099d3a8ab792a8d69167eb8c23a5e8d6a4cc /libavcodec/ppc/dsputil_ppc.c
parent83f72f138e64b596dce1b543d6af3cf66d300e90 (diff)
downloadffmpeg-ccf22d3ed181a14019d0c2f02f2ce30ac8e23ef5.tar.gz
Merge has_altivec() function into mm_support(), remove it and use
mm_support() instead. Reduce complexity and simplify pending move to libavutil. Originally committed as revision 25074 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc/dsputil_ppc.c')
-rw-r--r--libavcodec/ppc/dsputil_ppc.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/libavcodec/ppc/dsputil_ppc.c b/libavcodec/ppc/dsputil_ppc.c
index 6d004cf221..3c930a8179 100644
--- a/libavcodec/ppc/dsputil_ppc.c
+++ b/libavcodec/ppc/dsputil_ppc.c
@@ -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 @@ void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx)
#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);