From 0418cbf081957372f858c4664ba200754982b024 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 24 May 2013 19:44:29 +0200 Subject: [PATCH 1/2] fix scalarproduct_and_madd_int16_altivec() for orders > 16 the second and third sources were incremented only by half of the needed size --- libavcodec/ppc/int_altivec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/ppc/int_altivec.c b/libavcodec/ppc/int_altivec.c index 67d119c473..8357ca768b 100644 --- a/libavcodec/ppc/int_altivec.c +++ b/libavcodec/ppc/int_altivec.c @@ -129,8 +129,8 @@ static int32_t scalarproduct_and_madd_int16_altivec(int16_t *v1, const int16_t * pv1[0] = vec_mladd(t0, muls, i0); pv1[1] = vec_mladd(t1, muls, i1); pv1 += 2; - v2 += 8; - v3 += 8; + v2 += 16; + v3 += 16; } while(--order); res = vec_splat(vec_sums(res, zero_s32v), 3); vec_ste(res, 0, &ires); From be7952b5c3ace9aba4a4121d7bb540ac5257594c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Sun, 26 May 2013 12:47:33 +0300 Subject: [PATCH 2/2] arm: Only output eabi attributes if building for ELF MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This matches the other eabi attribute in the same file. This is required in order to build for arm/hardfloat with other object file formats than ELF. Signed-off-by: Martin Storsjö --- libavutil/arm/asm.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/arm/asm.S b/libavutil/arm/asm.S index a1817892f0..463820015d 100644 --- a/libavutil/arm/asm.S +++ b/libavutil/arm/asm.S @@ -291,7 +291,7 @@ T sub \rn, \rn, \rm .endm #if HAVE_VFP_ARGS - .eabi_attribute 28, 1 +ELF .eabi_attribute 28, 1 # define VFP # define NOVFP @ #else