28 |
%macro cglobal 1 |
%macro cglobal 1 |
29 |
%ifdef PREFIX |
%ifdef PREFIX |
30 |
%ifdef MARK_FUNCS |
%ifdef MARK_FUNCS |
31 |
global _%1:function |
global _%1:function %1.endfunc-%1 |
32 |
%define %1 _%1:function |
%define %1 _%1:function %1.endfunc-%1 |
33 |
%else |
%else |
34 |
global _%1 |
global _%1 |
35 |
%define %1 _%1 |
%define %1 _%1 |
36 |
%endif |
%endif |
37 |
%else |
%else |
38 |
%ifdef MARK_FUNCS |
%ifdef MARK_FUNCS |
39 |
global %1:function |
global %1:function %1.endfunc-%1 |
40 |
%else |
%else |
41 |
global %1 |
global %1 |
42 |
%endif |
%endif |
271 |
STORE_1 mm2, mm3 |
STORE_1 mm2, mm3 |
272 |
|
|
273 |
ret |
ret |
274 |
|
.endfunc |
275 |
|
|
276 |
;=========================================================================== |
;=========================================================================== |
277 |
; |
; |
466 |
STORE_ADD_1 mm2, mm3 |
STORE_ADD_1 mm2, mm3 |
467 |
|
|
468 |
ret |
ret |
469 |
|
.endfunc |
470 |
|
|
471 |
;=========================================================================== |
;=========================================================================== |
472 |
; |
; |
598 |
STORE_1 mm2, mm3 |
STORE_1 mm2, mm3 |
599 |
|
|
600 |
ret |
ret |
601 |
|
.endfunc |
602 |
|
|
603 |
;=========================================================================== |
;=========================================================================== |
604 |
; |
; |
707 |
STORE_ADD_1 mm2, mm3 |
STORE_ADD_1 mm2, mm3 |
708 |
|
|
709 |
ret |
ret |
710 |
|
.endfunc |
711 |
|
|
712 |
|
|
713 |
;=========================================================================== |
;=========================================================================== |
764 |
pop edi |
pop edi |
765 |
pop esi |
pop esi |
766 |
ret |
ret |
767 |
|
.endfunc |
768 |
|
|
769 |
; mmx is of no use here. Better use plain ASM. Moreover, |
; mmx is of no use here. Better use plain ASM. Moreover, |
770 |
; this is for the fun of ASM coding, coz' every modern compiler can |
; this is for the fun of ASM coding, coz' every modern compiler can |
804 |
pop edi |
pop edi |
805 |
pop esi |
pop esi |
806 |
ret |
ret |
807 |
|
.endfunc |
808 |
|
|
809 |
; this one's just a little faster than gcc's code. Very little. |
; this one's just a little faster than gcc's code. Very little. |
810 |
|
|
841 |
pop edi |
pop edi |
842 |
pop esi |
pop esi |
843 |
ret |
ret |
844 |
|
.endfunc |
845 |
|
|
846 |
;////////////////////////////////////////////////////////////////////// |
;////////////////////////////////////////////////////////////////////// |
847 |
;// 16b downsampling 16x16 -> 8x8 |
;// 16b downsampling 16x16 -> 8x8 |
931 |
COPY_TWO_LINES_1331 ecx + 6*16 +8 |
COPY_TWO_LINES_1331 ecx + 6*16 +8 |
932 |
|
|
933 |
ret |
ret |
934 |
|
.endfunc |
935 |
|
|
936 |
;=========================================================================== |
;=========================================================================== |
937 |
; |
; |
996 |
DIFF_TWO_LINES_1331 ecx + 6*16 +8 |
DIFF_TWO_LINES_1331 ecx + 6*16 +8 |
997 |
|
|
998 |
ret |
ret |
999 |
|
.endfunc |
1000 |
|
|
1001 |
;////////////////////////////////////////////////////////////////////// |
;////////////////////////////////////////////////////////////////////// |
1002 |
|
|