[pypy-svn] pypy jit-longlong: Use the standard way of enabling 'withsmallong' only in level O2,

arigo commits-noreply at bitbucket.org
Tue Jan 25 18:00:46 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: jit-longlong
Changeset: r41315:7c98dce545f8
Date: 2011-01-24 18:17 +0100
http://bitbucket.org/pypy/pypy/changeset/7c98dce545f8/

Log:	Use the standard way of enabling 'withsmallong' only in level O2, O3
	or Ojit.

diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py
--- a/pypy/config/pypyoption.py
+++ b/pypy/config/pypyoption.py
@@ -216,7 +216,7 @@
                   default=100, cmdline="--prebuiltintto"),
 
         BoolOption("withsmalllong", "use a version of 'long' in a C long long",
-                   default=not IS_64_BITS),
+                   default=False),
 
         BoolOption("withstrjoin", "use strings optimized for addition",
                    default=False),
@@ -351,6 +351,8 @@
         config.objspace.std.suggest(optimized_list_getitem=True)
         config.objspace.std.suggest(getattributeshortcut=True)
         config.objspace.std.suggest(newshortcut=True)        
+        if not IS_64_BITS:
+            config.objspace.std.suggest(withsmalllong=True)
 
     # extra costly optimizations only go in level 3
     if level == '3':


More information about the Pypy-commit mailing list