19 |
; * along with this program; if not, write to the Free Software |
; * along with this program; if not, write to the Free Software |
20 |
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
; * |
; * |
22 |
; * $Id: postprocessing_mmx.asm,v 1.4 2004-08-29 10:02:38 edgomez Exp $ |
; * $Id: postprocessing_mmx.asm,v 1.6 2008-11-11 20:46:24 Isibaar Exp $ |
23 |
; * |
; * |
24 |
; *************************************************************************/ |
; *************************************************************************/ |
25 |
|
|
30 |
%ifdef MARK_FUNCS |
%ifdef MARK_FUNCS |
31 |
global _%1:function %1.endfunc-%1 |
global _%1:function %1.endfunc-%1 |
32 |
%define %1 _%1:function %1.endfunc-%1 |
%define %1 _%1:function %1.endfunc-%1 |
33 |
|
%define ENDFUNC .endfunc |
34 |
%else |
%else |
35 |
global _%1 |
global _%1 |
36 |
%define %1 _%1 |
%define %1 _%1 |
37 |
|
%define ENDFUNC |
38 |
%endif |
%endif |
39 |
%else |
%else |
40 |
%ifdef MARK_FUNCS |
%ifdef MARK_FUNCS |
41 |
global %1:function %1.endfunc-%1 |
global %1:function %1.endfunc-%1 |
42 |
|
%define ENDFUNC .endfunc |
43 |
%else |
%else |
44 |
global %1 |
global %1 |
45 |
|
%define ENDFUNC |
46 |
%endif |
%endif |
47 |
%endif |
%endif |
48 |
%endmacro |
%endmacro |
97 |
mov esi, [esp+8+12] ; width |
mov esi, [esp+8+12] ; width |
98 |
mov edi, [esp+8+16] ; height |
mov edi, [esp+8+16] ; height |
99 |
|
|
100 |
.yloop |
.yloop: |
101 |
xor eax, eax |
xor eax, eax |
102 |
|
|
103 |
.xloop |
.xloop: |
104 |
movq mm0, [edx + eax] |
movq mm0, [edx + eax] |
105 |
movq mm1, [edx + eax + 8] ; mm0 = [dst] |
movq mm1, [edx + eax + 8] ; mm0 = [dst] |
106 |
|
|
126 |
pop esi |
pop esi |
127 |
|
|
128 |
ret |
ret |
129 |
.endfunc |
ENDFUNC |
130 |
;////////////////////////////////////////////////////////////////////// |
;////////////////////////////////////////////////////////////////////// |
131 |
|
|
132 |
|
%ifidn __OUTPUT_FORMAT__,elf |
133 |
|
section ".note.GNU-stack" noalloc noexec nowrite progbits |
134 |
|
%endif |
135 |
|
|