aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/ppc
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-05-10 23:22:17 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-05-31 12:07:11 +0200
commitda60b99a8857d5ca236f32c1799a066e0135a866 (patch)
treeb5af7af3af176f5d481970b9137fc6eefad4a5ab /libavutil/ppc
parentf22ebd2555d15b59e109a5b630dd71374b076d0b (diff)
downloadffmpeg-da60b99a8857d5ca236f32c1799a066e0135a866.tar.gz
ppc: Restrict some Altivec implementations to Big Endian
In Little Endian the vec_ld/vec_st operations work as expected only for byte-vectors.
Diffstat (limited to 'libavutil/ppc')
-rw-r--r--libavutil/ppc/float_dsp_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/ppc/float_dsp_init.c b/libavutil/ppc/float_dsp_init.c
index 60d0f19aca..e81dc7a441 100644
--- a/libavutil/ppc/float_dsp_init.c
+++ b/libavutil/ppc/float_dsp_init.c
@@ -29,7 +29,7 @@ av_cold void ff_float_dsp_init_ppc(AVFloatDSPContext *fdsp, int bit_exact)
{
if (!PPC_ALTIVEC(av_get_cpu_flags()))
return;
-
+#if HAVE_BIGENDIAN
fdsp->vector_fmul = ff_vector_fmul_altivec;
fdsp->vector_fmul_add = ff_vector_fmul_add_altivec;
fdsp->vector_fmul_reverse = ff_vector_fmul_reverse_altivec;
@@ -37,4 +37,5 @@ 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
}