Author: Alex Gaynor <[email protected]> Branch: Changeset: r53240:b608170d963a Date: 2012-03-05 16:06 -0500 http://bitbucket.org/pypy/pypy/changeset/b608170d963a/
Log: Can't inline this, the JIT doesn't like it. diff --git a/pypy/rlib/rstruct/nativefmttable.py b/pypy/rlib/rstruct/nativefmttable.py --- a/pypy/rlib/rstruct/nativefmttable.py +++ b/pypy/rlib/rstruct/nativefmttable.py @@ -3,6 +3,7 @@ The table 'native_fmttable' is also used by pypy.module.array.interp_array. """ import struct +from pypy.rlib import jit from pypy.rlib.rstruct import standardfmttable as std from pypy.rlib.rstruct.error import StructError from pypy.rpython.tool import rffi_platform @@ -25,6 +26,7 @@ double_buf = lltype.malloc(rffi.DOUBLEP.TO, 1, flavor='raw', immortal=True) float_buf = lltype.malloc(rffi.FLOATP.TO, 1, flavor='raw', immortal=True) [email protected]_look_inside def pack_double(fmtiter): doubleval = fmtiter.accept_float_arg() double_buf[0] = doubleval @@ -40,6 +42,7 @@ doubleval = double_buf[0] fmtiter.appendobj(doubleval) [email protected]_look_inside def pack_float(fmtiter): doubleval = fmtiter.accept_float_arg() floatval = r_singlefloat(doubleval) _______________________________________________ pypy-commit mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-commit
