[pypy-commit] pypy ppc-jit-backend: Added arch.py.

hager noreply at buildbot.pypy.org
Thu Aug 18 18:31:35 CEST 2011


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r46612:ce0bcbb1b82d
Date: 2011-08-18 18:34 +0200
http://bitbucket.org/pypy/pypy/changeset/ce0bcbb1b82d/

Log:	Added arch.py.

diff --git a/pypy/jit/backend/ppc/ppcgen/arch.py b/pypy/jit/backend/ppc/ppcgen/arch.py
new file mode 100644
--- /dev/null
+++ b/pypy/jit/backend/ppc/ppcgen/arch.py
@@ -0,0 +1,12 @@
+# Constants that depend on whether we are on 32-bit or 64-bit
+
+import sys
+if sys.maxint == (2**31 - 1):
+    WORD = 4
+    IS_PPC_32 = True
+    IS_PPC_64 = False
+else:
+    WORD = 8
+    IS_PPC_32 = False
+    IS_PPC_64 = True
+


More information about the pypy-commit mailing list