~ubuntu-branches/ubuntu/karmic/pypy/karmic

« back to all changes in this revision

Viewing changes to pypy/jit/codegen/ppc/ppcgen/util.py

  • Committer: Bazaar Package Importer
  • Author(s): Alexandre Fayolle
  • Date: 2007-04-13 09:33:09 UTC
  • Revision ID: james.westby@ubuntu.com-20070413093309-yoojh4jcoocu2krz
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from pypy.jit.codegen.ppc.ppcgen.ppc_assembler import MyPPCAssembler
 
2
from pypy.jit.codegen.ppc.ppcgen.func_builder import make_func
 
3
 
 
4
from regname import *
 
5
 
 
6
def access_at():
 
7
    a = MyPPCAssembler()
 
8
 
 
9
    a.lwzx(r3, r3, r4)
 
10
    a.blr()
 
11
 
 
12
    return make_func(a, "i", "ii")
 
13
 
 
14
access_at = access_at()
 
15
 
 
16
def itoO():
 
17
    a = MyPPCAssembler()
 
18
 
 
19
    a.blr()
 
20
 
 
21
    return make_func(a, "O", "i")
 
22
 
 
23
itoO = itoO()