2 * Copyright (c) 2010 Mans Rullgard <mans@mansr.com>
4 * This file is part of FFmpeg.
6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 #include "libavutil/arm/asm.S"
23 function ff_synth_filter_float_neon, export=1
26 ldr r4, [r2] @ synth_buf_offset
27 add r1, r1, r4, lsl #2 @ synth_buf
33 ldr r2, [sp, #12*4] @ in
34 mov r9, r1 @ synth_buf
37 bl X(ff_imdct_half_neon)
41 ldr r5, [sp, #9*4] @ window
42 ldr r2, [sp, #10*4] @ out
43 NOVFP vldr s0, [sp, #12*4] @ scale
49 add r10, r9, #16*4 @ synth_buf
51 add r0, r5, #16*4 @ window
55 vld1.32 {q10}, [r3,:128] @ a
57 vld1.32 {q1}, [r3,:128] @ b
63 vld1.32 {q9}, [r8, :128], lr
65 vld1.32 {q8}, [r5, :128], lr
66 vmls.f32 d20, d16, d19
67 vld1.32 {q11}, [r0, :128], lr
68 vmls.f32 d21, d17, d18
69 vld1.32 {q12}, [r9, :128], lr
71 vld1.32 {q8}, [r6, :128], lr
73 vld1.32 {q9}, [r10,:128], lr
75 vld1.32 {q12}, [r11,:128], lr
78 vld1.32 {q11}, [r7, :128], lr
91 vmul.f32 q8, q10, d0[0]
92 vmul.f32 q9, q1, d0[0]
93 vst1.32 {q3}, [r3,:128]
95 vst1.32 {q2}, [r3,:128]
96 vst1.32 {q8}, [r2,:128]
98 vst1.32 {q9}, [r2,:128]
109 sub r2, r2, #12*4 @ out
110 add r3, r3, #4*4 @ synth_buf2
111 add r5, r5, #4*4 @ window
112 add r9, r9, #4*4 @ synth_buf
113 sub r8, r8, #4*4 @ synth_buf