Commit ccc48b31 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/arm/int_neon: fix handling sizes % 16 != 0

This assumes the array is sufficiently padded with 0
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 429f742a
......@@ -35,7 +35,7 @@ function ff_scalarproduct_int16_neon, export=1
vmlal.s16 q2, d18, d22
vmlal.s16 q3, d19, d23
subs r2, r2, #16
bne 1b
bgt 1b
vpadd.s32 d16, d0, d1
vpadd.s32 d17, d2, d3
......@@ -75,7 +75,7 @@ function ff_scalarproduct_and_madd_int16_neon, export=1
vst1.16 {q10}, [r12,:128]!
subs r3, r3, #16
vst1.16 {q13}, [r12,:128]!
bne 1b
bgt 1b
vpadd.s32 d16, d0, d1
vpadd.s32 d17, d2, d3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment