[cvs] / xvidcore / src / bitstream / ppc_asm / cbp_ppc.s Repository:
ViewVC logotype

Diff of /xvidcore/src/bitstream/ppc_asm/cbp_ppc.s

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

revision 1.4, Fri Mar 22 12:24:07 2002 UTC revision 1.5, Fri Mar 22 12:51:22 2002 UTC
# Line 20  Line 20 
20  #    $Date$  #    $Date$
21  #    $Author$  #    $Author$
22  #  #
23  #    This is the PPC ASM code I write. So I might do nasty things.  #    This is my first PPC ASM attempt. So I might do nasty things.
24  #    Please send any comments to guillaume@morinfr.org  #    Please send any comments to <guillaume@morinfr.org>
25    
26    
27  # Returns a field of bits that indicates non zero ac blocks  # Returns a field of bits that indicates non zero ac blocks
# Line 60  Line 60 
60          # r3 contains the result, therefore we set it to 0          # r3 contains the result, therefore we set it to 0
61          xor 3,3,3          xor 3,3,3
62  .loop:  .loop:
63          # r7 is the loop2 counter (columns), FIXME: use CTR          # CTR is the loop2 counter
64          li 7,14          li 7,15
65            mtspr 9,7
66          # r6 is coeff pointer for this line          # r6 is coeff pointer for this line
67          mr 6,9          mr 6,9
68  .loop2:  .loop2:
# Line 77  Line 78 
78          # testing bit 2 (is zero) of CR0          # testing bit 2 (is zero) of CR0
79          bf 2,.cbp          bf 2,.cbp
80          addi 6,6,8          addi 6,6,8
81          # subic. updates CR0          bdnz .loop2
82          subic. 7,7,1          # latest line coeffs
         # testing bit 0 (is negative) of CR0  
         bt 0,.lastcoeffs  
         b .loop2  
 .lastcoeffs:  
83          lha 4,2(6)          lha 4,2(6)
84          lha 5,4(6)          lha 5,4(6)
85          or 4,5,4          or 4,5,4

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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