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: mem_transfer_3dne.asm,v 1.7 2005-09-13 12:12:15 suxen_drol Exp $ |
; * $Id: mem_transfer_3dne.asm,v 1.10 2008-11-11 20:46:24 Isibaar Exp $ |
23 |
; * |
; * |
24 |
; ***************************************************************************/ |
; ***************************************************************************/ |
25 |
|
|
33 |
%ifdef MARK_FUNCS |
%ifdef MARK_FUNCS |
34 |
global _%1:function %1.endfunc-%1 |
global _%1:function %1.endfunc-%1 |
35 |
%define %1 _%1:function %1.endfunc-%1 |
%define %1 _%1:function %1.endfunc-%1 |
36 |
|
%define ENDFUNC .endfunc |
37 |
%else |
%else |
38 |
global _%1 |
global _%1 |
39 |
%define %1 _%1 |
%define %1 _%1 |
40 |
|
%define ENDFUNC |
41 |
%endif |
%endif |
42 |
%else |
%else |
43 |
%ifdef MARK_FUNCS |
%ifdef MARK_FUNCS |
44 |
global %1:function %1.endfunc-%1 |
global %1:function %1.endfunc-%1 |
45 |
|
%define ENDFUNC .endfunc |
46 |
%else |
%else |
47 |
global %1 |
global %1 |
48 |
|
%define ENDFUNC |
49 |
%endif |
%endif |
50 |
%endif |
%endif |
51 |
%endmacro |
%endmacro |
153 |
movq [byte ecx+1*64+48], mm6 |
movq [byte ecx+1*64+48], mm6 |
154 |
movq [ecx+1*64+40], mm7 |
movq [ecx+1*64+40], mm7 |
155 |
ret |
ret |
156 |
.endfunc |
ENDFUNC |
157 |
|
|
158 |
|
|
159 |
;----------------------------------------------------------------------------- |
;----------------------------------------------------------------------------- |
199 |
movq [eax+4*edx], mm7 |
movq [eax+4*edx], mm7 |
200 |
movq [ecx+2*edx], mm6 |
movq [ecx+2*edx], mm6 |
201 |
ret |
ret |
202 |
.endfunc |
ENDFUNC |
203 |
|
|
204 |
;----------------------------------------------------------------------------- |
;----------------------------------------------------------------------------- |
205 |
; |
; |
258 |
mov eax, [esp + 8] ; Cur |
mov eax, [esp + 8] ; Cur |
259 |
mov ecx, [esp +12] ; Ref |
mov ecx, [esp +12] ; Ref |
260 |
push edi |
push edi |
261 |
mov edx, [dword esp+4+16] ; Stride |
mov edx, [esp+4+16] ; Stride |
262 |
mov edi, [esp+4+ 4] ; Dst |
mov edi, [esp+4+ 4] ; Dst |
263 |
pxor mm7, mm7 |
pxor mm7, mm7 |
264 |
nop |
nop |
269 |
COPY_8_TO_16_SUB 3, 1 |
COPY_8_TO_16_SUB 3, 1 |
270 |
mov edi, ecx |
mov edi, ecx |
271 |
ret |
ret |
272 |
.endfunc |
ENDFUNC |
273 |
|
|
274 |
ALIGN 16 |
ALIGN 16 |
275 |
transfer_8to16subro_3dne: |
transfer_8to16subro_3dne: |
276 |
mov eax, [esp + 8] ; Cur |
mov eax, [esp + 8] ; Cur |
277 |
mov ecx, [esp +12] ; Ref |
mov ecx, [esp +12] ; Ref |
278 |
push edi |
push edi |
279 |
mov edx, [dword esp+4+16] ; Stride |
mov edx, [esp+4+16] ; Stride |
280 |
mov edi, [esp+4+ 4] ; Dst |
mov edi, [esp+4+ 4] ; Dst |
281 |
pxor mm7, mm7 |
pxor mm7, mm7 |
282 |
nop |
nop |
287 |
COPY_8_TO_16_SUB 3, 0 |
COPY_8_TO_16_SUB 3, 0 |
288 |
mov edi, ecx |
mov edi, ecx |
289 |
ret |
ret |
290 |
.endfunc |
ENDFUNC |
291 |
|
|
292 |
|
|
293 |
;----------------------------------------------------------------------------- |
;----------------------------------------------------------------------------- |
359 |
COPY_8_TO_16_SUB2_SSE 3 |
COPY_8_TO_16_SUB2_SSE 3 |
360 |
|
|
361 |
ret |
ret |
362 |
.endfunc |
ENDFUNC |
363 |
|
|
364 |
|
|
365 |
;----------------------------------------------------------------------------- |
;----------------------------------------------------------------------------- |
407 |
lea ecx,[byte ecx+2*edx] |
lea ecx,[byte ecx+2*edx] |
408 |
COPY_16_TO_8_ADD 3 |
COPY_16_TO_8_ADD 3 |
409 |
ret |
ret |
410 |
.endfunc |
ENDFUNC |
411 |
|
|
412 |
;----------------------------------------------------------------------------- |
;----------------------------------------------------------------------------- |
413 |
; |
; |
440 |
lea ecx,[byte ecx+2*edx] |
lea ecx,[byte ecx+2*edx] |
441 |
COPY_8_TO_8 |
COPY_8_TO_8 |
442 |
ret |
ret |
443 |
.endfunc |
ENDFUNC |
444 |
|
|
445 |
;----------------------------------------------------------------------------- |
;----------------------------------------------------------------------------- |
446 |
; |
; |
461 |
lea ecx,[byte ecx+2*edx] |
lea ecx,[byte ecx+2*edx] |
462 |
COPY_8_TO_8 |
COPY_8_TO_8 |
463 |
ret |
ret |
464 |
.endfunc |
ENDFUNC |
465 |
|
|
466 |
|
|
467 |
|
%ifidn __OUTPUT_FORMAT__,elf |
468 |
|
section ".note.GNU-stack" noalloc noexec nowrite progbits |
469 |
|
%endif |
470 |
|
|