--- trunk/xvidcore/src/motion/x86_asm/sad_xmm.asm 2004/03/22 22:36:25 1382 +++ trunk/xvidcore/src/motion/x86_asm/sad_xmm.asm 2004/08/29 10:02:38 1540 @@ -21,7 +21,7 @@ ; * along with this program; if not, write to the Free Software ; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ; * -; * $Id: sad_xmm.asm,v 1.7 2004-03-22 22:36:24 edgomez Exp $ +; * $Id: sad_xmm.asm,v 1.10 2004-08-29 10:02:38 edgomez Exp $ ; * ; ***************************************************************************/ @@ -29,10 +29,19 @@ %macro cglobal 1 %ifdef PREFIX - global _%1 - %define %1 _%1 + %ifdef MARK_FUNCS + global _%1:function %1.endfunc-%1 + %define %1 _%1:function %1.endfunc-%1 + %else + global _%1 + %define %1 _%1 + %endif %else - global %1 + %ifdef MARK_FUNCS + global %1:function %1.endfunc-%1 + %else + global %1 + %endif %endif %endmacro @@ -41,9 +50,9 @@ ;============================================================================= %ifdef FORMAT_COFF -SECTION .rodata data +SECTION .rodata %else -SECTION .rodata data align=16 +SECTION .rodata align=16 %endif ALIGN 16 @@ -180,6 +189,7 @@ paddusw mm6,mm5 movd eax, mm6 ret +.endfunc ;----------------------------------------------------------------------------- @@ -220,6 +230,7 @@ movd eax, mm6 ret +.endfunc ;----------------------------------------------------------------------------- @@ -264,6 +275,7 @@ movd eax, mm6 pop ebx ret +.endfunc ;----------------------------------------------------------------------------- ; @@ -294,6 +306,7 @@ movd eax, mm6 pop ebx ret +.endfunc ;----------------------------------------------------------------------------- @@ -374,6 +387,7 @@ movd eax, mm6 ret +.endfunc ;----------------------------------------------------------------------------- ;int sad16v_xmm(const uint8_t * const cur, @@ -428,3 +442,5 @@ movd eax, mm7 pop ebx ret +.endfunc +