2 * MMX-optimized avg/put pixel routines
4 * Copyright (c) 2001 Fabrice Bellard
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
27 #include "dsputil_x86.h"
31 void ff_avg_pixels8_x2_mmx(uint8_t *block, const uint8_t *pixels,
32 ptrdiff_t line_size, int h)
39 "movq 1%1, %%mm1 \n\t"
41 PAVGB_MMX(%%mm0, %%mm1, %%mm2, %%mm6)
42 PAVGB_MMX(%%mm3, %%mm2, %%mm0, %%mm6)
52 #endif /* HAVE_MMX_INLINE */