[pypy-commit] pypy improve-rbigint: Add rffi_platform check (Thanks fijal)

stian noreply at buildbot.pypy.org
Sat Jul 21 18:41:58 CEST 2012


Author: stian
Branch: improve-rbigint
Changeset: r56366:ba3f3a9b4f4d
Date: 2012-07-14 00:46 +0200
http://bitbucket.org/pypy/pypy/changeset/ba3f3a9b4f4d/

Log:	Add rffi_platform check (Thanks fijal)

diff --git a/pypy/rlib/rbigint.py b/pypy/rlib/rbigint.py
--- a/pypy/rlib/rbigint.py
+++ b/pypy/rlib/rbigint.py
@@ -12,15 +12,7 @@
 
 import math, sys
 
-# Check for int128 support. Is this right? It sure doesn't work.
-"""class CConfig:
-    _compilation_info_ = ExternalCompilationInfo()
-    
-    __INT128 = rffi_platform.SimpleType("__int128", rffi.__INT128)
-
-cConfig = rffi_platform.configure(CConfig)"""
-
-SUPPORT_INT128 = True
+SUPPORT_INT128 = rffi_platform.has('__int128', '')
 
 # note about digit sizes:
 # In division, the native integer type must be able to hold


More information about the pypy-commit mailing list