2 * Copyright (C) 2000 Red Hat, Inc
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
19 .file "composite_line_22_4a4_mmx.S"
25 #if !defined(__MINGW32__) && !defined(__CYGWIN__) && !defined(__INTERIX)
27 /* Magic indicating no need for an executable stack */
28 #if !defined __powerpc64__ && !defined __ia64__
29 .section .note.GNU-stack; .previous
32 .globl _pixops_composite_line_22_4a4_mmx
33 .type _pixops_composite_line_22_4a4_mmx,@function
34 _pixops_composite_line_22_4a4_mmx:
38 .globl __pixops_composite_line_22_4a4_mmx
39 __pixops_composite_line_22_4a4_mmx:
65 * int x_scaled -24(%ebp)
71 /* Initialize variables */
82 /* Load initial values into %mm1, %mm3 */
88 movl (%edi, %edx), %eax
89 movd (%edi, %edx), %mm5
103 movl (%edi, %edx), %eax
104 movd (%edi, %edx), %mm5
109 orl $0xff000000, %eax
124 /* int x_index = (x & 0xf000) >> 12 */
129 movq (%edi,%eax),%mm4
131 movq 8(%edi,%eax),%mm5
133 movq 16(%edi,%eax),%mm6
134 movq 24(%edi,%eax),%mm7
164 /* x_scale = x >> 16; */
185 * Load the two new values into %mm1, %mm3, move old values into %mm0, %mm2
192 # %mm4 will always be already clear here
196 movl (%edi, %edx), %eax
197 movd (%edi, %edx), %mm5
203 * mull destroyed %edx, need to reconstitute
208 orl $0xff000000, %eax
214 movl (%edi, %edx), %eax
215 movd (%edi, %edx), %mm5
220 orl $0xff000000, %eax