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_short_walsh4x4_neon|
18 AREA ||.text||
, CODE
, READONLY
, ALIGN=2
19 ;void vp8_short_walsh4x4_c(short *input, short *output, int pitch)
21 |vp8_short_walsh4x4_neon|
PROC
22 vld1.16
{d2}, [r0
], r2
;load input
23 vld1.16
{d3}, [r0
], r2
24 vld1.16
{d4}, [r0
], r2
25 vld1.16
{d5}, [r0
], r2
28 ;transpose d2, d3, d4, d5. Then, d2=ip[0], d3=ip[1], d4=ip[2], d5=ip[3]
34 vadd.s16 d6
, d2
, d5
;a1 = ip[0]+ip[3]
35 vadd.s16 d7
, d3
, d4
;b1 = ip[1]+ip[2]
36 vsub.s16 d8
, d3
, d4
;c1 = ip[1]-ip[2]
37 vsub.s16 d9
, d2
, d5
;d1 = ip[0]-ip[3]
39 vadd.s16 d2
, d6
, d7
;op[0] = a1 + b1
40 vsub.s16 d4
, d6
, d7
;op[2] = a1 - b1
41 vadd.s16 d3
, d8
, d9
;op[1] = c1 + d1
42 vsub.s16 d5
, d9
, d8
;op[3] = d1 - c1
45 ;transpose d2, d3, d4, d5. Then, d2=ip[0], d3=ip[4], d4=ip[8], d5=ip[12]
51 vadd.s16 d6
, d2
, d5
;a1 = ip[0]+ip[12]
52 vadd.s16 d7
, d3
, d4
;b1 = ip[4]+ip[8]
53 vsub.s16 d8
, d3
, d4
;c1 = ip[4]-ip[8]
54 vsub.s16 d9
, d2
, d5
;d1 = ip[0]-ip[12]
56 vadd.s16 d2
, d6
, d7
;a2 = a1 + b1;
57 vsub.s16 d4
, d6
, d7
;c2 = a1 - b1;
58 vadd.s16 d3
, d8
, d9
;b2 = c1 + d1;
59 vsub.s16 d5
, d9
, d8
;d2 = d1 - c1;
70 vst1.16
{q1, q2}, [r1
]