1 ;******************************************************************************
2 ;* SIMD optimized DSP functions for G722 coding
4 ;* Copyright (c) 2014 James Almer
6 ;* This file is part of FFmpeg.
8 ;* FFmpeg is free software; you can redistribute it and/or
9 ;* modify it under the terms of the GNU Lesser General Public
10 ;* License as published by the Free Software Foundation; either
11 ;* version 2.1 of the License, or (at your option) any later version.
13 ;* FFmpeg is distributed in the hope that it will be useful,
14 ;* but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 ;* Lesser General Public License for more details.
18 ;* You should have received a copy of the GNU Lesser General Public
19 ;* License along with FFmpeg; if not, write to the Free Software
20 ;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 ;******************************************************************************
23 %include "libavutil/x86/x86util.asm"
27 pw_qmf_coeffs: dw 3, -210, -11, -805, -11, 951, 53, 3876
28 pw_qmf_coeffs2: dw 12, 3876, -156, 951, 32, -805, 362, -210
29 pw_qmf_coeffs3: dw 362, 0 , 32, 0, -156, 0, 12, 0
30 pw_qmf_coeffs4: dw 53, 0, -11, 0, -11, 0, 3, 0
35 cglobal g722_apply_qmf, 2, 2, 5, prev, out
36 movu m0, [prevq+mmsize*0]
37 movu m1, [prevq+mmsize*1]
38 movu m2, [prevq+mmsize*2]
43 pmaddwd m3, [pw_qmf_coeffs ]
44 pmaddwd m0, [pw_qmf_coeffs2]
45 pmaddwd m4, [pw_qmf_coeffs3]
46 pmaddwd m2, [pw_qmf_coeffs4]