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: reduced_mmx.asm,v 1.7 2008-08-19 09:06:48 Isibaar Exp $ |
; * $Id: reduced_mmx.asm,v 1.8 2008-11-11 20:46:24 Isibaar Exp $ |
23 |
; * |
; * |
24 |
; *************************************************************************/ |
; *************************************************************************/ |
25 |
|
|
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 |
275 |
STORE_1 mm2, mm3 |
STORE_1 mm2, mm3 |
276 |
|
|
277 |
ret |
ret |
278 |
.endfunc |
ENDFUNC |
279 |
|
|
280 |
;=========================================================================== |
;=========================================================================== |
281 |
; |
; |
470 |
STORE_ADD_1 mm2, mm3 |
STORE_ADD_1 mm2, mm3 |
471 |
|
|
472 |
ret |
ret |
473 |
.endfunc |
ENDFUNC |
474 |
|
|
475 |
;=========================================================================== |
;=========================================================================== |
476 |
; |
; |
602 |
STORE_1 mm2, mm3 |
STORE_1 mm2, mm3 |
603 |
|
|
604 |
ret |
ret |
605 |
.endfunc |
ENDFUNC |
606 |
|
|
607 |
;=========================================================================== |
;=========================================================================== |
608 |
; |
; |
711 |
STORE_ADD_1 mm2, mm3 |
STORE_ADD_1 mm2, mm3 |
712 |
|
|
713 |
ret |
ret |
714 |
.endfunc |
ENDFUNC |
715 |
|
|
716 |
|
|
717 |
;=========================================================================== |
;=========================================================================== |
768 |
pop edi |
pop edi |
769 |
pop esi |
pop esi |
770 |
ret |
ret |
771 |
.endfunc |
ENDFUNC |
772 |
|
|
773 |
; mmx is of no use here. Better use plain ASM. Moreover, |
; mmx is of no use here. Better use plain ASM. Moreover, |
774 |
; 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 |
808 |
pop edi |
pop edi |
809 |
pop esi |
pop esi |
810 |
ret |
ret |
811 |
.endfunc |
ENDFUNC |
812 |
|
|
813 |
; 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. |
814 |
|
|
845 |
pop edi |
pop edi |
846 |
pop esi |
pop esi |
847 |
ret |
ret |
848 |
.endfunc |
ENDFUNC |
849 |
|
|
850 |
;////////////////////////////////////////////////////////////////////// |
;////////////////////////////////////////////////////////////////////// |
851 |
;// 16b downsampling 16x16 -> 8x8 |
;// 16b downsampling 16x16 -> 8x8 |
935 |
COPY_TWO_LINES_1331 ecx + 6*16 +8 |
COPY_TWO_LINES_1331 ecx + 6*16 +8 |
936 |
|
|
937 |
ret |
ret |
938 |
.endfunc |
ENDFUNC |
939 |
|
|
940 |
;=========================================================================== |
;=========================================================================== |
941 |
; |
; |
1000 |
DIFF_TWO_LINES_1331 ecx + 6*16 +8 |
DIFF_TWO_LINES_1331 ecx + 6*16 +8 |
1001 |
|
|
1002 |
ret |
ret |
1003 |
.endfunc |
ENDFUNC |
1004 |
|
|
1005 |
;////////////////////////////////////////////////////////////////////// |
;////////////////////////////////////////////////////////////////////// |
1006 |
|
|