]> granicus.if.org Git - python/commit
This is my patch:
authorMichael W. Hudson <mwh@python.net>
Fri, 27 May 2005 15:23:20 +0000 (15:23 +0000)
committerMichael W. Hudson <mwh@python.net>
Fri, 27 May 2005 15:23:20 +0000 (15:23 +0000)
commitba283e2b7f3d970246fbd53981b18234b6ca447c
treef7f3f7ae51386b89193aad53c9c0088e8e88a48a
parentff52286d4a43d2a525ace6b68775f8fc60ed7a88
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.
Include/floatobject.h
Include/pythonrun.h
Lib/test/test_float.py [new file with mode: 0644]
Objects/floatobject.c
Python/pythonrun.c