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: sad_3dne.asm,v 1.3 2004-03-22 22:36:24 edgomez Exp $ |
; * $Id: sad_3dne.asm,v 1.7 2007-09-11 12:41:13 suxen_drol Exp $ |
23 |
; * |
; * |
24 |
; ***************************************************************************/ |
; ***************************************************************************/ |
25 |
|
|
30 |
|
|
31 |
%macro cglobal 1 |
%macro cglobal 1 |
32 |
%ifdef PREFIX |
%ifdef PREFIX |
33 |
|
%ifdef MARK_FUNCS |
34 |
|
global _%1:function %1.endfunc-%1 |
35 |
|
%define %1 _%1:function %1.endfunc-%1 |
36 |
|
%else |
37 |
global _%1 |
global _%1 |
38 |
%define %1 _%1 |
%define %1 _%1 |
39 |
|
%endif |
40 |
|
%else |
41 |
|
%ifdef MARK_FUNCS |
42 |
|
global %1:function %1.endfunc-%1 |
43 |
%else |
%else |
44 |
global %1 |
global %1 |
45 |
%endif |
%endif |
46 |
|
%endif |
47 |
%endmacro |
%endmacro |
48 |
|
|
49 |
;============================================================================= |
;============================================================================= |
51 |
;============================================================================= |
;============================================================================= |
52 |
|
|
53 |
%ifdef FORMAT_COFF |
%ifdef FORMAT_COFF |
54 |
SECTION .rodata data |
SECTION .rodata |
55 |
%else |
%else |
56 |
SECTION .rodata data align=16 |
SECTION .rodata align=16 |
57 |
%endif |
%endif |
58 |
|
|
59 |
ALIGN 16 |
ALIGN 16 |
180 |
movq mm1, [eax+2*ecx+8] |
movq mm1, [eax+2*ecx+8] |
181 |
psadbw mm3, mm4 |
psadbw mm3, mm4 |
182 |
|
|
183 |
movq mm0, [dword eax+edx] |
movq mm0, [eax+edx+0] |
184 |
psadbw mm2, mm4 |
psadbw mm2, mm4 |
185 |
add eax, edx |
add eax, edx |
186 |
psadbw mm1, mm4 |
psadbw mm1, mm4 |
265 |
add eax, ecx |
add eax, ecx |
266 |
|
|
267 |
ret |
ret |
268 |
|
.endfunc |
269 |
|
|
270 |
|
|
271 |
;----------------------------------------------------------------------------- |
;----------------------------------------------------------------------------- |
320 |
movd eax, mm0 |
movd eax, mm0 |
321 |
|
|
322 |
ret |
ret |
323 |
|
.endfunc |
324 |
|
|
325 |
|
|
326 |
;----------------------------------------------------------------------------- |
;----------------------------------------------------------------------------- |
365 |
movd eax, mm6 |
movd eax, mm6 |
366 |
|
|
367 |
ret |
ret |
368 |
|
.endfunc |
369 |
|
|
370 |
;----------------------------------------------------------------------------- |
;----------------------------------------------------------------------------- |
371 |
; |
; |
441 |
movd eax, mm6 |
movd eax, mm6 |
442 |
|
|
443 |
ret |
ret |
444 |
|
.endfunc |
445 |
|
|
446 |
|
|
447 |
;=========================================================================== |
;=========================================================================== |
500 |
movd eax, mm7 |
movd eax, mm7 |
501 |
|
|
502 |
ret |
ret |
503 |
|
.endfunc |
504 |
|
|