python/dist/src/Python pythonrun.c,2.213,2.214
Update of /cvsroot/python/python/dist/src/Python In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14998/Python Modified Files: pythonrun.c Log Message: This is my patch: [ 1181301 ] make float packing copy bytes when they can which hasn't been reviewed, despite numerous threats to check it in anyway if noone reviews it. Please read the diff on the checkin list, at least! The basic idea is to examine the bytes of some 'probe values' to see if the current platform is a IEEE 754-ish platform, and if so _PyFloat_{Pack,Unpack}{4,8} just copy bytes around. The rest is hair for testing, and tests. Index: pythonrun.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v retrieving revision 2.213 retrieving revision 2.214 diff -u -d -r2.213 -r2.214 --- pythonrun.c 29 Mar 2005 13:36:16 -0000 2.213 +++ pythonrun.c 27 May 2005 15:23:20 -0000 2.214 @@ -172,6 +172,8 @@ if (!_PyInt_Init()) Py_FatalError("Py_Initialize: can't init ints"); + _PyFloat_Init(); + interp->modules = PyDict_New(); if (interp->modules == NULL) Py_FatalError("Py_Initialize: can't make modules dictionary");
participants (1)
-
mwh@users.sourceforge.net