--- quantize_h263_3dne.asm 2004/08/22 11:46:10 1.4 +++ quantize_h263_3dne.asm 2008/11/11 20:46:24 1.8 @@ -19,7 +19,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: quantize_h263_3dne.asm,v 1.4 2004/08/22 11:46:10 edgomez Exp $ +; * $Id: quantize_h263_3dne.asm,v 1.8 2008/11/11 20:46:24 Isibaar Exp $ ; * ; *************************************************************************/ ; @@ -34,17 +34,21 @@ %macro cglobal 1 %ifdef PREFIX %ifdef MARK_FUNCS - global _%1:function - %define %1 _%1:function + global _%1:function %1.endfunc-%1 + %define %1 _%1:function %1.endfunc-%1 + %define ENDFUNC .endfunc %else global _%1 %define %1 _%1 + %define ENDFUNC %endif %else %ifdef MARK_FUNCS - global %1:function + global %1:function %1.endfunc-%1 + %define ENDFUNC .endfunc %else global %1 + %define ENDFUNC %endif %endif %endmacro @@ -377,7 +381,7 @@ ALIGN 16 -.q1loop +.q1loop: quant_intra1 0 mov ebp, [esp + 16 + 16] ; dcscalar movsx eax, word [byte ecx] ; DC @@ -396,7 +400,7 @@ quant_intra1 3 psubw mm5, mm4 ;C8 - mov esi, [dword esp + 12] ; pop back the register value + mov esi, [esp + 12] ; pop back the register value mov edi, [esp + 4] ; pop back the register value sar eax, 16 lea ebx, [byte eax + 1] ; workaround for eax < 0 @@ -410,6 +414,7 @@ xor eax, eax ret +ENDFUNC @@ -545,7 +550,7 @@ ret ALIGN 16 -.q1loop +.q1loop: movq mm6, [byte ebx] quantinter1 0 @@ -566,6 +571,7 @@ pop ebx ret +ENDFUNC ;----------------------------------------------------------------------------- ; @@ -717,6 +723,7 @@ xor eax, eax ret +ENDFUNC ;----------------------------------------------------------------------------- ; @@ -752,7 +759,7 @@ pmaxsw mm2, mm3 ;|c| ;B4 (2nd) pmullw mm2, [edi] ;*= 2Q ;B8 (3rd+) psraw mm3, 15 ; sign(c) ;B7 (2nd) - mov edx, [dword esp+ 4+12] ; data + mov edx, [esp+ 4+12] ; data ALIGN 8 @@ -779,3 +786,10 @@ xor eax, eax ret +ENDFUNC + + +%ifidn __OUTPUT_FORMAT__,elf +section ".note.GNU-stack" noalloc noexec nowrite progbits +%endif +