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_dca_lfe_fir_neon, export=1
26 add r4, r0, r3, lsl #2 @ out2
27 add r5, r2, #256*4-16 @ cf1
33 NOVFP vldr s0, [sp, #16] @ scale
36 vmov.f32 q2, #0.0 @ v0
37 vmov.f32 q3, #0.0 @ v1
40 vld1.32 {q8}, [r2,:128]! @ cf0
41 vld1.32 {q9}, [r5,:128], lr @ cf1
42 vld1.32 {q1}, [r1], lr @ in
50 add r1, r1, r6, lsl #2
55 vmul.f32 d5, d4, d0[0]
56 vst1.32 {d5[0]}, [r0,:32]!
57 vst1.32 {d5[1]}, [r4,:32]!