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

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

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

revision 55, Fri Mar 22 11:32:47 2002 UTC revision 56, Fri Mar 22 12:24:07 2002 UTC
# Line 15  Line 15 
15  #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16  #  #
17  #  #
18  #    $Id: cbp_ppc.s,v 1.3 2002-03-22 11:32:47 canard Exp $  #    $Id: cbp_ppc.s,v 1.4 2002-03-22 12:24:07 canard Exp $
19  #    $Source: /home/xvid/cvs_copy/cvs-server-root/xvid/xvidcore/src/bitstream/ppc_asm/cbp_ppc.s,v $  #    $Source: /home/xvid/cvs_copy/cvs-server-root/xvid/xvidcore/src/bitstream/ppc_asm/cbp_ppc.s,v $
20  #    $Date: 2002-03-22 11:32:47 $  #    $Date: 2002-03-22 12:24:07 $
21  #    $Author: canard $  #    $Author: canard $
22  #  #
23  #    This is my first PPC ASM program. So I might do nasty things.  #    This is the PPC ASM code I write. 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    
# Line 55  Line 55 
55  calc_cbp_ppc:  calc_cbp_ppc:
56          # r9 will contain coeffs addr          # r9 will contain coeffs addr
57          mr 9,3          mr 9,3
58          # r8 is the loop counter          # r8 is the loop counter (rows)
59          li 8,5          li 8,5
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, FIXME: use CTR          # r7 is the loop2 counter (columns), FIXME: use CTR
64          li 7,14          li 7,14
65          # r6 is coeff pointer for this line          # r6 is coeff pointer for this line
66          mr 6,9          mr 6,9
# Line 95  Line 95 
95          li 4,1          li 4,1
96          slw 4,4,8          slw 4,4,8
97          or 3,3,4          or 3,3,4
         b .newline  
98  .newline:  .newline:
99          addi 9,9,128          addi 9,9,128
100          # updates CR0, blabla          # updates CR0, blabla
101          subic. 8,8,1          subic. 8,8,1
102          bf 0,.loop          bf 0,.loop
 .end:  
103          blr          blr

Legend:
Removed from v.55  
changed lines
  Added in v.56

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