diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-08-20 16:36:47 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-08-28 23:54:15 +0200 |
commit | f61bece684d9685b07895508e6c1c733b5564ccf (patch) | |
tree | 3375c204994cab80d06115a141fc3068d26efefa /libavcodec | |
parent | 8410d6e93c2e074881f1c7b7e4cdefd2e497d52e (diff) | |
download | ffmpeg-f61bece684d9685b07895508e6c1c733b5564ccf.tar.gz |
ppc: Add and use convenience macro to check for AltiVec availability
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ppc/dsputil_ppc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/ppc/dsputil_ppc.c b/libavcodec/ppc/dsputil_ppc.c index 463bc70f26..6ae6e3f729 100644 --- a/libavcodec/ppc/dsputil_ppc.c +++ b/libavcodec/ppc/dsputil_ppc.c @@ -25,6 +25,7 @@ #include "libavutil/attributes.h" #include "libavutil/cpu.h" #include "libavutil/mem.h" +#include "libavutil/ppc/cpu.h" #include "dsputil_altivec.h" /* ***** WARNING ***** WARNING ***** WARNING ***** */ @@ -155,8 +156,7 @@ av_cold void ff_dsputil_init_ppc(DSPContext *c, AVCodecContext *avctx) } } -#if HAVE_ALTIVEC - if (av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) { + if (PPC_ALTIVEC(av_get_cpu_flags())) { ff_dsputil_init_altivec(c, avctx); ff_int_init_altivec(c, avctx); c->gmc1 = ff_gmc1_altivec; @@ -179,5 +179,4 @@ av_cold void ff_dsputil_init_ppc(DSPContext *c, AVCodecContext *avctx) } } -#endif /* HAVE_ALTIVEC */ } |