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 /libavutil/ppc/float_dsp_init.c | |
parent | 8410d6e93c2e074881f1c7b7e4cdefd2e497d52e (diff) | |
download | ffmpeg-f61bece684d9685b07895508e6c1c733b5564ccf.tar.gz |
ppc: Add and use convenience macro to check for AltiVec availability
Diffstat (limited to 'libavutil/ppc/float_dsp_init.c')
-rw-r--r-- | libavutil/ppc/float_dsp_init.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavutil/ppc/float_dsp_init.c b/libavutil/ppc/float_dsp_init.c index c89aa7f3c7..60d0f19aca 100644 --- a/libavutil/ppc/float_dsp_init.c +++ b/libavutil/ppc/float_dsp_init.c @@ -22,12 +22,12 @@ #include "libavutil/attributes.h" #include "libavutil/cpu.h" #include "libavutil/float_dsp.h" +#include "libavutil/ppc/cpu.h" #include "float_dsp_altivec.h" av_cold void ff_float_dsp_init_ppc(AVFloatDSPContext *fdsp, int bit_exact) { -#if HAVE_ALTIVEC - if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC)) + if (!PPC_ALTIVEC(av_get_cpu_flags())) return; fdsp->vector_fmul = ff_vector_fmul_altivec; @@ -37,5 +37,4 @@ av_cold void ff_float_dsp_init_ppc(AVFloatDSPContext *fdsp, int bit_exact) if (!bit_exact) { fdsp->vector_fmul_window = ff_vector_fmul_window_altivec; } -#endif } |