21 |
; * along with this program; if not, write to the Free Software |
; * along with this program; if not, write to the Free Software |
22 |
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 |
; * |
; * |
24 |
; * $Id: sad_xmm.asm,v 1.9 2004-08-22 11:46:10 edgomez Exp $ |
; * $Id: sad_xmm.asm,v 1.10 2004-08-29 10:02:38 edgomez Exp $ |
25 |
; * |
; * |
26 |
; ***************************************************************************/ |
; ***************************************************************************/ |
27 |
|
|
30 |
%macro cglobal 1 |
%macro cglobal 1 |
31 |
%ifdef PREFIX |
%ifdef PREFIX |
32 |
%ifdef MARK_FUNCS |
%ifdef MARK_FUNCS |
33 |
global _%1:function |
global _%1:function %1.endfunc-%1 |
34 |
%define %1 _%1:function |
%define %1 _%1:function %1.endfunc-%1 |
35 |
%else |
%else |
36 |
global _%1 |
global _%1 |
37 |
%define %1 _%1 |
%define %1 _%1 |
38 |
%endif |
%endif |
39 |
%else |
%else |
40 |
%ifdef MARK_FUNCS |
%ifdef MARK_FUNCS |
41 |
global %1:function |
global %1:function %1.endfunc-%1 |
42 |
%else |
%else |
43 |
global %1 |
global %1 |
44 |
%endif |
%endif |
189 |
paddusw mm6,mm5 |
paddusw mm6,mm5 |
190 |
movd eax, mm6 |
movd eax, mm6 |
191 |
ret |
ret |
192 |
|
.endfunc |
193 |
|
|
194 |
|
|
195 |
;----------------------------------------------------------------------------- |
;----------------------------------------------------------------------------- |
230 |
movd eax, mm6 |
movd eax, mm6 |
231 |
|
|
232 |
ret |
ret |
233 |
|
.endfunc |
234 |
|
|
235 |
|
|
236 |
;----------------------------------------------------------------------------- |
;----------------------------------------------------------------------------- |
275 |
movd eax, mm6 |
movd eax, mm6 |
276 |
pop ebx |
pop ebx |
277 |
ret |
ret |
278 |
|
.endfunc |
279 |
|
|
280 |
;----------------------------------------------------------------------------- |
;----------------------------------------------------------------------------- |
281 |
; |
; |
306 |
movd eax, mm6 |
movd eax, mm6 |
307 |
pop ebx |
pop ebx |
308 |
ret |
ret |
309 |
|
.endfunc |
310 |
|
|
311 |
|
|
312 |
;----------------------------------------------------------------------------- |
;----------------------------------------------------------------------------- |
387 |
|
|
388 |
movd eax, mm6 |
movd eax, mm6 |
389 |
ret |
ret |
390 |
|
.endfunc |
391 |
|
|
392 |
;----------------------------------------------------------------------------- |
;----------------------------------------------------------------------------- |
393 |
;int sad16v_xmm(const uint8_t * const cur, |
;int sad16v_xmm(const uint8_t * const cur, |
442 |
movd eax, mm7 |
movd eax, mm7 |
443 |
pop ebx |
pop ebx |
444 |
ret |
ret |
445 |
|
.endfunc |
446 |
|
|