[svn] / branches / release-1_2-branch / xvidcore / src / quant / x86_asm / quantize_h263_3dne.asm Repository:
ViewVC logotype

Diff of /branches/release-1_2-branch/xvidcore/src/quant/x86_asm/quantize_h263_3dne.asm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1519, Sat Jul 24 11:46:08 2004 UTC revision 1790, Tue Aug 19 09:06:48 2008 UTC
# Line 19  Line 19 
19  ; *  along with this program ; if not, write to the Free Software  ; *  along with this program ; if not, write to the Free Software
20  ; *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA  ; *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21  ; *  ; *
22  ; * $Id: quantize_h263_3dne.asm,v 1.3 2004-07-24 11:46:08 edgomez Exp $  ; * $Id: quantize_h263_3dne.asm,v 1.7 2008-08-19 09:06:48 Isibaar Exp $
23  ; *  ; *
24  ; *************************************************************************/  ; *************************************************************************/
25  ;  ;
# Line 33  Line 33 
33    
34  %macro cglobal 1  %macro cglobal 1
35          %ifdef PREFIX          %ifdef PREFIX
36                    %ifdef MARK_FUNCS
37                            global _%1:function %1.endfunc-%1
38                            %define %1 _%1:function %1.endfunc-%1
39                    %else
40                  global _%1                  global _%1
41                  %define %1 _%1                  %define %1 _%1
42                    %endif
43            %else
44                    %ifdef MARK_FUNCS
45                            global %1:function %1.endfunc-%1
46          %else          %else
47                  global %1                  global %1
48          %endif          %endif
49            %endif
50  %endmacro  %endmacro
51    
52  ;=============================================================================  ;=============================================================================
# Line 387  Line 396 
396    
397    quant_intra1 3    quant_intra1 3
398    psubw mm5, mm4                    ;C8    psubw mm5, mm4                    ;C8
399    mov esi, [dword esp + 12]         ; pop back the register value    mov esi, [esp + 12]         ; pop back the register value
400    mov edi, [esp + 4]                ; pop back the register value    mov edi, [esp + 4]                ; pop back the register value
401    sar eax, 16    sar eax, 16
402    lea ebx, [byte eax + 1]           ; workaround for eax < 0    lea ebx, [byte eax + 1]           ; workaround for eax < 0
# Line 401  Line 410 
410    
411    xor eax, eax    xor eax, eax
412    ret    ret
413    .endfunc
414    
415    
416    
# Line 557  Line 567 
567    pop ebx    pop ebx
568    
569    ret    ret
570    .endfunc
571    
572  ;-----------------------------------------------------------------------------  ;-----------------------------------------------------------------------------
573  ;  ;
# Line 708  Line 719 
719    
720    xor eax, eax    xor eax, eax
721    ret    ret
722    .endfunc
723    
724  ;-----------------------------------------------------------------------------  ;-----------------------------------------------------------------------------
725  ;  ;
# Line 743  Line 755 
755    pmaxsw mm2, mm3                   ;|c|        ;B4 (2nd)    pmaxsw mm2, mm3                   ;|c|        ;B4 (2nd)
756    pmullw mm2, [edi]                 ;*= 2Q      ;B8 (3rd+)    pmullw mm2, [edi]                 ;*= 2Q      ;B8 (3rd+)
757    psraw mm3, 15                     ; sign(c)   ;B7 (2nd)    psraw mm3, 15                     ; sign(c)   ;B7 (2nd)
758    mov edx, [dword esp+ 4+12]        ; data    mov edx, [esp+ 4+12]        ; data
759    
760  ALIGN 8  ALIGN 8
761    
# Line 770  Line 782 
782    
783    xor eax, eax    xor eax, eax
784    ret    ret
785    .endfunc
786    
787    
788    %ifidn __OUTPUT_FORMAT__,elf
789    section ".note.GNU-stack" noalloc noexec nowrite progbits
790    %endif
791    

Legend:
Removed from v.1519  
changed lines
  Added in v.1790

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4