summaryrefslogtreecommitdiff
path: root/libavcodec/arm/dsputil_arm.S
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-08-02 19:17:16 +0100
committerMans Rullgard <mans@mansr.com>2012-09-20 17:07:18 +0100
commita27a690fac6d9f42464039702f8cde6777778a53 (patch)
tree239f30a80039406ad5a41205b0fe26a92b797928 /libavcodec/arm/dsputil_arm.S
parent0122118ec32087cf3522bf14a1c4e34cb7d95a67 (diff)
ARM: swap source operands in some add instructions
This allows using a 16-bit opcode when generating Thumb2 code. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/arm/dsputil_arm.S')
-rw-r--r--libavcodec/arm/dsputil_arm.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/arm/dsputil_arm.S b/libavcodec/arm/dsputil_arm.S
index dd65f705a7..3686befec1 100644
--- a/libavcodec/arm/dsputil_arm.S
+++ b/libavcodec/arm/dsputil_arm.S
@@ -632,7 +632,7 @@ function ff_add_pixels_clamped_arm, export=1
ldrsh r7, [r0, #2]
and r6, r4, #0xFF
and r8, r4, #0xFF00
- add r6, r5, r6
+ add r6, r6, r5
add r8, r7, r8, lsr #8
mvn r5, r5
mvn r7, r7
@@ -674,7 +674,7 @@ function ff_add_pixels_clamped_arm, export=1
ldrsh r7, [r0, #10]
and r6, r4, #0xFF
and r8, r4, #0xFF00
- add r6, r5, r6
+ add r6, r6, r5
add r8, r7, r8, lsr #8
mvn r5, r5
mvn r7, r7