[pypy-svn] pypy jitypes2: this is a pure function
antocuni
commits-noreply at bitbucket.org
Mon Dec 27 19:04:32 CET 2010
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: jitypes2
Changeset: r40245:cdb68ffd66d5
Date: 2010-12-27 19:04 +0100
http://bitbucket.org/pypy/pypy/changeset/cdb68ffd66d5/
Log: this is a pure function
diff --git a/pypy/rlib/libffi.py b/pypy/rlib/libffi.py
--- a/pypy/rlib/libffi.py
+++ b/pypy/rlib/libffi.py
@@ -69,6 +69,7 @@
raise KeyError
@staticmethod
+ @jit.purefunction
def is_struct(ffi_type):
return intmask(ffi_type.c_type) == intmask(FFI_TYPE_STRUCT)
More information about the Pypy-commit
mailing list