Merge "respect alignment in arm asm files"
[libvpx.git] / vp8 / decoder / arm / armv5 / dequantize_v5.asm
blobde3648ae25fb4a5c1c645be88b2a3dcf1e8369d2
2 ; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
4 ; Use of this source code is governed by a BSD-style license
5 ; that can be found in the LICENSE file in the root of the source
6 ; tree. An additional intellectual property rights grant can be found
7 ; in the file PATENTS. All contributing project authors may
8 ; be found in the AUTHORS file in the root of the source tree.
12 EXPORT |vp8_dequantize_b_armv5|
14 AREA |.text|, CODE, READONLY ; name this block of code
16 q RN r0
17 dqc RN r1
18 cnt RN r2
20 ;void dequantize_b_armv5(short *Q, short *DQC)
21 |vp8_dequantize_b_armv5| PROC
22 stmdb sp!, {r4, lr}
23 ldr r3, [q]
24 ldr r4, [dqc], #8
26 mov cnt, #4
27 dequant_loop
28 smulbb lr, r3, r4
29 smultt r12, r3, r4
31 ldr r3, [q, #4]
32 ldr r4, [dqc, #-4]
34 strh lr, [q], #2
35 strh r12, [q], #2
37 smulbb lr, r3, r4
38 smultt r12, r3, r4
40 subs cnt, cnt, #1
41 ldrne r3, [q, #4]
42 ldrne r4, [dqc], #8
44 strh lr, [q], #2
45 strh r12, [q], #2
47 bne dequant_loop
49 ldmia sp!, {r4, pc}
50 ENDP ;|vp8_dequantize_b_arm|
52 END