35 |
%ifdef MARK_FUNCS |
%ifdef MARK_FUNCS |
36 |
global _%1:function %1.endfunc-%1 |
global _%1:function %1.endfunc-%1 |
37 |
%define %1 _%1:function %1.endfunc-%1 |
%define %1 _%1:function %1.endfunc-%1 |
38 |
|
%define ENDFUNC .endfunc |
39 |
%else |
%else |
40 |
global _%1 |
global _%1 |
41 |
%define %1 _%1 |
%define %1 _%1 |
42 |
|
%define ENDFUNC |
43 |
%endif |
%endif |
44 |
%else |
%else |
45 |
%ifdef MARK_FUNCS |
%ifdef MARK_FUNCS |
46 |
global %1:function %1.endfunc-%1 |
global %1:function %1.endfunc-%1 |
47 |
|
%define ENDFUNC .endfunc |
48 |
%else |
%else |
49 |
global %1 |
global %1 |
50 |
|
%define ENDFUNC |
51 |
%endif |
%endif |
52 |
%endif |
%endif |
53 |
%endmacro |
%endmacro |
110 |
jz .blk2 |
jz .blk2 |
111 |
or eax, (1<<5) |
or eax, (1<<5) |
112 |
|
|
113 |
.blk2 |
.blk2: |
114 |
LOOP_SSE2 1 |
LOOP_SSE2 1 |
115 |
test ecx, ecx |
test ecx, ecx |
116 |
jz .blk3 |
jz .blk3 |
117 |
or eax, (1<<4) |
or eax, (1<<4) |
118 |
|
|
119 |
.blk3 |
.blk3: |
120 |
LOOP_SSE2 2 |
LOOP_SSE2 2 |
121 |
test ecx, ecx |
test ecx, ecx |
122 |
jz .blk4 |
jz .blk4 |
123 |
or eax, (1<<3) |
or eax, (1<<3) |
124 |
|
|
125 |
.blk4 |
.blk4: |
126 |
LOOP_SSE2 3 |
LOOP_SSE2 3 |
127 |
test ecx, ecx |
test ecx, ecx |
128 |
jz .blk5 |
jz .blk5 |
129 |
or eax, (1<<2) |
or eax, (1<<2) |
130 |
|
|
131 |
.blk5 |
.blk5: |
132 |
LOOP_SSE2 4 |
LOOP_SSE2 4 |
133 |
test ecx, ecx |
test ecx, ecx |
134 |
jz .blk6 |
jz .blk6 |
135 |
or eax, (1<<1) |
or eax, (1<<1) |
136 |
|
|
137 |
.blk6 |
.blk6: |
138 |
LOOP_SSE2 5 |
LOOP_SSE2 5 |
139 |
test ecx, ecx |
test ecx, ecx |
140 |
jz .finished |
jz .finished |
141 |
or eax, (1<<0) |
or eax, (1<<0) |
142 |
|
|
143 |
.finished |
.finished: |
144 |
ret |
ret |
145 |
.endfunc |
ENDFUNC |
146 |
|
|
147 |
|
|
148 |
%ifidn __OUTPUT_FORMAT__,elf |
%ifidn __OUTPUT_FORMAT__,elf |