summaryrefslogtreecommitdiff
path: root/ffmpeg/libavutil/ppc/float_dsp_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffmpeg/libavutil/ppc/float_dsp_init.c')
-rw-r--r--ffmpeg/libavutil/ppc/float_dsp_init.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/ffmpeg/libavutil/ppc/float_dsp_init.c b/ffmpeg/libavutil/ppc/float_dsp_init.c
index d9ca53e..9dd2072 100644
--- a/ffmpeg/libavutil/ppc/float_dsp_init.c
+++ b/ffmpeg/libavutil/ppc/float_dsp_init.c
@@ -19,16 +19,15 @@
*/
#include "config.h"
+#include "libavutil/attributes.h"
#include "libavutil/cpu.h"
#include "libavutil/float_dsp.h"
+#include "libavutil/ppc/cpu.h"
#include "float_dsp_altivec.h"
-void ff_float_dsp_init_ppc(AVFloatDSPContext *fdsp, int bit_exact)
+av_cold void ff_float_dsp_init_ppc(AVFloatDSPContext *fdsp, int bit_exact)
{
-#if HAVE_ALTIVEC
- int mm_flags = av_get_cpu_flags();
-
- if (!(mm_flags & AV_CPU_FLAG_ALTIVEC))
+ if (!PPC_ALTIVEC(av_get_cpu_flags()))
return;
fdsp->vector_fmul = ff_vector_fmul_altivec;
@@ -38,5 +37,4 @@ void ff_float_dsp_init_ppc(AVFloatDSPContext *fdsp, int bit_exact)
if (!bit_exact) {
fdsp->vector_fmul_window = ff_vector_fmul_window_altivec;
}
-#endif
}