27 |
%macro cglobal 1 |
%macro cglobal 1 |
28 |
%ifdef PREFIX |
%ifdef PREFIX |
29 |
%ifdef MARK_FUNCS |
%ifdef MARK_FUNCS |
30 |
global _%1:function |
global _%1:function %1.endfunc-%1 |
31 |
%define %1 _%1:function |
%define %1 _%1:function %1.endfunc-%1 |
32 |
%else |
%else |
33 |
global _%1 |
global _%1 |
34 |
%define %1 _%1 |
%define %1 _%1 |
35 |
%endif |
%endif |
36 |
%else |
%else |
37 |
%ifdef MARK_FUNCS |
%ifdef MARK_FUNCS |
38 |
global %1:function |
global %1:function %1.endfunc-%1 |
39 |
%else |
%else |
40 |
global %1 |
global %1 |
41 |
%endif |
%endif |
137 |
lea ecx,[ecx+2*edx] |
lea ecx,[ecx+2*edx] |
138 |
COPY_H_SSE_RND1 |
COPY_H_SSE_RND1 |
139 |
ret |
ret |
140 |
|
.endfunc |
141 |
|
|
142 |
;=========================================================================== |
;=========================================================================== |
143 |
; |
; |
212 |
lea ecx,[ecx+2*edx] |
lea ecx,[ecx+2*edx] |
213 |
COPY_V_SSE_RND1 |
COPY_V_SSE_RND1 |
214 |
ret |
ret |
215 |
|
.endfunc |
216 |
|
|
217 |
;=========================================================================== |
;=========================================================================== |
218 |
; |
; |
351 |
add ecx, edx |
add ecx, edx |
352 |
COPY_HV_SSE_RND1 |
COPY_HV_SSE_RND1 |
353 |
ret |
ret |
354 |
|
.endfunc |
355 |
|
|
356 |
;=========================================================================== |
;=========================================================================== |
357 |
; |
; |
419 |
lea ecx,[ecx+2*edx] |
lea ecx,[ecx+2*edx] |
420 |
ADD_FF 0, edx |
ADD_FF 0, edx |
421 |
EPILOG |
EPILOG |
422 |
|
.endfunc |
423 |
|
|
424 |
;=========================================================================== |
;=========================================================================== |
425 |
; |
; |
495 |
lea ecx,[ecx+2*edx] |
lea ecx,[ecx+2*edx] |
496 |
ADD_FH_RND1 0, edx |
ADD_FH_RND1 0, edx |
497 |
EPILOG |
EPILOG |
498 |
|
.endfunc |
499 |
|
|
500 |
|
|
501 |
;=========================================================================== |
;=========================================================================== |
571 |
lea ecx,[ecx+2*edx] |
lea ecx,[ecx+2*edx] |
572 |
ADD_8_HF_RND1 |
ADD_8_HF_RND1 |
573 |
EPILOG |
EPILOG |
574 |
|
.endfunc |
575 |
|
|
576 |
; The trick is to correct the result of 'pavgb' with some combination of the |
; The trick is to correct the result of 'pavgb' with some combination of the |
577 |
; lsb's of the 4 input values i,j,k,l, and their intermediate 'pavgb' (s and t). |
; lsb's of the 4 input values i,j,k,l, and their intermediate 'pavgb' (s and t). |
711 |
ADD_HH_RND1 |
ADD_HH_RND1 |
712 |
|
|
713 |
EPILOG |
EPILOG |
714 |
|
.endfunc |
715 |
|
|