summaryrefslogtreecommitdiff
path: root/Include/pythonrun.h
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2005-05-27 15:23:20 +0000
committerMichael W. Hudson <mwh@python.net>2005-05-27 15:23:20 +0000
commit1b520a3784e91dfbbc60457e3489265cad7c9887 (patch)
tree3893f7789478627c8335d0c2a26972e5f2b286a6 /Include/pythonrun.h
parente5b4d4200d764002746f308e451ef3421f6fccda (diff)
downloadcpython-1b520a3784e91dfbbc60457e3489265cad7c9887.tar.gz
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.
Diffstat (limited to 'Include/pythonrun.h')
-rw-r--r--Include/pythonrun.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/pythonrun.h b/Include/pythonrun.h
index 33497ceafc..4afab88418 100644
--- a/Include/pythonrun.h
+++ b/Include/pythonrun.h
@@ -105,6 +105,7 @@ PyAPI_FUNC(void) _PyExc_Init(void);
PyAPI_FUNC(void) _PyImportHooks_Init(void);
PyAPI_FUNC(int) _PyFrame_Init(void);
PyAPI_FUNC(int) _PyInt_Init(void);
+PyAPI_FUNC(void) _PyFloat_Init(void);
/* Various internal finalizers */
PyAPI_FUNC(void) _PyExc_Fini(void);