20 |
; * along with this program; if not, write to the Free Software |
; * along with this program; if not, write to the Free Software |
21 |
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 |
; * |
; * |
23 |
; * $Id: qpel_mmx.asm,v 1.8 2008-11-26 01:04:34 Isibaar Exp $ |
; * $Id: qpel_mmx.asm,v 1.9 2008-11-26 23:35:50 Isibaar Exp $ |
24 |
; * |
; * |
25 |
; *************************************************************************/ |
; *************************************************************************/ |
26 |
|
|
256 |
lea r9, [%2] |
lea r9, [%2] |
257 |
paddw %1, [r9 + %3] |
paddw %1, [r9 + %3] |
258 |
%endmacro |
%endmacro |
259 |
%ifdef WINDOWS |
%define SRC_PTR prm2 |
260 |
%define SRC_PTR _EDX |
%define DST_PTR prm1 |
|
%define DST_PTR _ECX |
|
|
%else |
|
|
%define SRC_PTR _ESI |
|
|
%define DST_PTR _EDI |
|
|
%endif |
|
261 |
%else |
%else |
262 |
%macro XVID_MOVQ 3 |
%macro XVID_MOVQ 3 |
263 |
movq %1, [%2 + %3] |
movq %1, [%2 + %3] |
767 |
%endif |
%endif |
768 |
|
|
769 |
movd eax, %3 |
movd eax, %3 |
770 |
mov [DST_PTR], _EAX |
mov dword [DST_PTR], eax |
771 |
|
|
772 |
%if (%4==0) |
%if (%4==0) |
773 |
add DST_PTR, _EBP |
add DST_PTR, _EBP |