summaryrefslogtreecommitdiff
path: root/libavcodec/ppc
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2016-10-01 21:28:39 +0200
committerLuca Barbato <lu_zero@gentoo.org>2016-10-02 17:13:36 +0200
commitb015872c0d0823e70776e98b865509ec1287e2f6 (patch)
treebb96838a1a2ec9f81a3c77d85962eb46ce0b52e7 /libavcodec/ppc
parent1d25a86902946dbc80bb3a38e61755181ca3af7b (diff)
downloadffmpeg-b015872c0d0823e70776e98b865509ec1287e2f6.tar.gz
huffyuvdsp: Enable the altivec code for PPC little-endian as well
Confirmed to work by checkasm.
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r--libavcodec/ppc/huffyuvdsp_altivec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/ppc/huffyuvdsp_altivec.c b/libavcodec/ppc/huffyuvdsp_altivec.c
index 337328ae05..7c34a67ea4 100644
--- a/libavcodec/ppc/huffyuvdsp_altivec.c
+++ b/libavcodec/ppc/huffyuvdsp_altivec.c
@@ -32,7 +32,7 @@
#include "libavutil/ppc/util_altivec.h"
#include "libavcodec/huffyuvdsp.h"
-#if HAVE_ALTIVEC && HAVE_BIGENDIAN
+#if HAVE_ALTIVEC
static void add_bytes_altivec(uint8_t *dst, uint8_t *src, int w)
{
register int i;
@@ -49,14 +49,14 @@ static void add_bytes_altivec(uint8_t *dst, uint8_t *src, int w)
for (; i < w; i++)
dst[i] = src[i];
}
-#endif /* HAVE_ALTIVEC && HAVE_BIGENDIAN */
+#endif /* HAVE_ALTIVEC */
av_cold void ff_huffyuvdsp_init_ppc(HuffYUVDSPContext *c)
{
-#if HAVE_ALTIVEC && HAVE_BIGENDIAN
+#if HAVE_ALTIVEC
if (!PPC_ALTIVEC(av_get_cpu_flags()))
return;
c->add_bytes = add_bytes_altivec;
-#endif /* HAVE_ALTIVEC && HAVE_BIGENDIAN */
+#endif /* HAVE_ALTIVEC */
}