1 ;******************************************************************************
2 ;* AAC Spectral Band Replication decoding functions
3 ;* Copyright (C) 2012 Christophe Gisquet <christophe.gisquet@gmail.com>
5 ;* This file is part of Libav.
7 ;* Libav is free software; you can redistribute it and/or
8 ;* modify it under the terms of the GNU Lesser General Public
9 ;* License as published by the Free Software Foundation; either
10 ;* version 2.1 of the License, or (at your option) any later version.
12 ;* Libav is distributed in the hope that it will be useful,
13 ;* but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 ;* Lesser General Public License for more details.
17 ;* You should have received a copy of the GNU Lesser General Public
18 ;* License along with Libav; if not, write to the Free Software
19 ;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 ;******************************************************************************
23 %include "x86util.asm"
29 cglobal sbr_sum_square, 2, 3, 6
55 ; len is a multiple of 2, thus there are at least 4 elements to process
77 cglobal sbr_hf_g_filt, 5, 6, 5
78 lea r1, [r1 + 8*r4] ; offset by ixh elements into X_high
86 movlps m0, [r2 + 4*r3 + 0]
87 movlps m1, [r2 + 4*r3 + 8]
88 movlps m2, [r1 + 0*STEP]
89 movlps m3, [r1 + 2*STEP]
90 movhps m2, [r1 + 1*STEP]
91 movhps m3, [r1 + 3*STEP]
96 movu [r0 + 8*r3 + 0], m0
97 movu [r0 + 8*r3 + 16], m1
101 and r5, 3 ; number of single element loops
103 .loop1: ; element 0 and 1 can be computed at the same time