[pypy-commit] pypy ffistruct: these two functions are not_rpython
antocuni
noreply at buildbot.pypy.org
Wed Nov 9 19:12:00 CET 2011
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: ffistruct
Changeset: r49033:9c29ae18d46b
Date: 2011-11-09 17:43 +0100
http://bitbucket.org/pypy/pypy/changeset/9c29ae18d46b/
Log: these two functions are not_rpython
diff --git a/pypy/rlib/rarithmetic.py b/pypy/rlib/rarithmetic.py
--- a/pypy/rlib/rarithmetic.py
+++ b/pypy/rlib/rarithmetic.py
@@ -56,6 +56,9 @@
assert LONG_BIT_SHIFT < 99, "LONG_BIT_SHIFT value not found?"
def intmask(n):
+ """
+ NOT_RPYTHON
+ """
if isinstance(n, int):
return int(n) # possibly bool->int
if isinstance(n, objectmodel.Symbolic):
@@ -68,6 +71,9 @@
return int(n)
def longlongmask(n):
+ """
+ NOT_RPYTHON
+ """
assert isinstance(n, (int, long))
n = long(n)
n &= LONGLONG_MASK
More information about the pypy-commit
mailing list