Author: hager <[email protected]>
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
+
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to