2 ; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
4 ; Use of this source code is governed by a BSD-style license and patent
5 ; grant that can be found in the LICENSE file in the root of the source
6 ; tree. All contributing project authors may be found in the AUTHORS
7 ; file in the root of the source tree.
11 EXPORT |idct_dequant_0_2x_neon|
16 AREA ||.text||, CODE, READONLY, ALIGN=2
17 ;void idct_dequant_0_2x_neon(short *q, short dq,
18 ; unsigned char *dst, int stride);
23 |idct_dequant_0_2x_neon| PROC
27 vld1.32 {d2[0]}, [r2], r3
28 vld1.32 {d8[0]}, [r12], r3
29 vld1.32 {d2[1]}, [r2], r3
30 vld1.32 {d8[1]}, [r12], r3
31 vld1.32 {d4[0]}, [r2], r3
32 vld1.32 {d10[0]}, [r12], r3
33 vld1.32 {d4[1]}, [r2], r3
34 vld1.32 {d10[1]}, [r12], r3
37 ldrh r4, [r0, #32] ; hi q
53 vaddw.u8 q1, q0, d2 ; lo
55 vaddw.u8 q4, q3, d8 ; hi
58 sub r2, r2, r3, lsl #2 ; dst - 4*stride
61 vqmovun.s16 d2, q1 ; lo
63 vqmovun.s16 d8, q4 ; hi
66 vst1.32 {d2[0]}, [r2], r3 ; lo
67 vst1.32 {d8[0]}, [r0], r3 ; hi
68 vst1.32 {d2[1]}, [r2], r3
69 vst1.32 {d8[1]}, [r0], r3
70 vst1.32 {d4[0]}, [r2], r3
71 vst1.32 {d10[0]}, [r0], r3
73 vst1.32 {d10[1]}, [r0]
78 ENDP ; |idct_dequant_0_2x_neon|