1 ;*****************************************************************************
2 ;* x86-optimized functions for pp7 filter
4 ;* Copyright (c) 2005 Michael Niedermayer <michaelni@gmx.at>
6 ;* This file is part of FFmpeg.
8 ;* FFmpeg is free software; you can redistribute it and/or modify
9 ;* it under the terms of the GNU General Public License as published by
10 ;* the Free Software Foundation; either version 2 of the License, or
11 ;* (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
16 ;* GNU General Public License for more details.
18 ;* You should have received a copy of the GNU General Public License along
19 ;* with FFmpeg; if not, write to the Free Software Foundation, Inc.,
20 ;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 ;******************************************************************************
23 %include "libavutil/x86/x86util.asm"
29 ;void ff_pp7_dctB_mmx(int16_t *dst, int16_t *src)
30 cglobal pp7_dctB, 2, 2, 0, dst, src
32 movq m1, [srcq+mmsize*1]
33 paddw m0, [srcq+mmsize*6]
34 paddw m1, [srcq+mmsize*5]
35 movq m2, [srcq+mmsize*2]
36 movq m3, [srcq+mmsize*3]
37 paddw m2, [srcq+mmsize*4]
54 movq [dstq+mmsize*2], m4
55 movq [dstq+mmsize*1], m2
56 movq [dstq+mmsize*3], m3