--- trunk/xvidcore/src/motion/x86_asm/sad_xmm.asm 2004/07/24 11:46:08 1519 +++ trunk/xvidcore/src/motion/x86_asm/sad_xmm.asm 2008/08/19 09:06:48 1790 @@ -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.8 2004-07-24 11:46:08 edgomez Exp $ +; * $Id: sad_xmm.asm,v 1.11 2008-08-19 09:06:48 Isibaar 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 @@ -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,10 @@ movd eax, mm7 pop ebx ret +.endfunc + + +%ifidn __OUTPUT_FORMAT__,elf +section ".note.GNU-stack" noalloc noexec nowrite progbits +%endif +