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 |
%ifidn __OUTPUT_FORMAT__,elf |