[pypy-svn] r34409 - pypy/dist/pypy/jit/codegen/ppc

mwh at codespeak.net mwh at codespeak.net
Thu Nov 9 13:24:48 CET 2006


Author: mwh
Date: Thu Nov  9 13:24:47 2006
New Revision: 34409

Modified:
   pypy/dist/pypy/jit/codegen/ppc/rgenop.py
Log:
slightly less stupid stack alignment code for ppc


Modified: pypy/dist/pypy/jit/codegen/ppc/rgenop.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/ppc/rgenop.py	(original)
+++ pypy/dist/pypy/jit/codegen/ppc/rgenop.py	Thu Nov  9 13:24:47 2006
@@ -209,7 +209,7 @@
         that there are 'param' bytes of parameters for callee functions and
         'lv' is the largest (wrt to abs() :) rFP-relative byte offset of
         any variable on the stack."""
-        return ((24 + param - lv) & ~15)+16
+        return ((24 + param - lv + 15) & ~15)
 
     def _close(self):
         self.rgenop.close_mc(self.asm.mc)



More information about the Pypy-commit mailing list