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
25 function ff_synth_filter_float_neon, export=1
28 ldr r4, [r2] @ synth_buf_offset
29 add r1, r1, r4, lsl #2 @ synth_buf
35 ldr r2, [sp, #12*4] @ in
36 mov r9, r1 @ synth_buf
43 ldr r5, [sp, #9*4] @ window
44 ldr r2, [sp, #10*4] @ out
45 NOVFP vldr d0, [sp, #12*4] @ scale, bias
51 add r10, r9, #16*4 @ synth_buf
53 add r0, r5, #16*4 @ window
57 vld1.32 {q10}, [r3,:128] @ a
59 vld1.32 {q1}, [r3,:128] @ b
65 vld1.32 {q9}, [r8, :128], lr
67 vld1.32 {q8}, [r5, :128], lr
68 vmls.f32 d20, d16, d19
69 vld1.32 {q11}, [r0, :128], lr
70 vmls.f32 d21, d17, d18
71 vld1.32 {q12}, [r9, :128], lr
73 vld1.32 {q8}, [r6, :128], lr
75 vld1.32 {q9}, [r10,:128], lr
77 vld1.32 {q12}, [r11,:128], lr
80 vld1.32 {q11}, [r7, :128], lr
95 vmla.f32 q8, q10, d0[0]
96 vmla.f32 q9, q1, d0[0]
97 vst1.32 {q3}, [r3,:128]
99 vst1.32 {q2}, [r3,:128]
100 vst1.32 {q8}, [r2,:128]
102 vst1.32 {q9}, [r2,:128]
111 sub r2, r2, #12*4 @ out
112 add r3, r3, #4*4 @ synth_buf2
113 add r5, r5, #4*4 @ window
114 add r9, r9, #4*4 @ synth_buf
115 sub r8, r8, #4*4 @ synth_buf