<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/floatobject.c, branch v2.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/floatobject.c?h=v2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/floatobject.c?h=v2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-03-11T10:17:17Z</updated>
<entry>
<title>backport tim_one's checkin of</title>
<updated>2002-03-11T10:17:17Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-03-11T10:17:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f97cf81f2f567e3b47ba25f68da504e81ded71eb'/>
<id>urn:sha1:f97cf81f2f567e3b47ba25f68da504e81ded71eb</id>
<content type='text'>
    revision 2.111 of floatobject.c

SF bug 525705:  [2.2] underflow raise OverflowException.
Another year in the quest to out-guess random C behavior.

Added macros Py_ADJUST_ERANGE1(X) and Py_ADJUST_ERANGE2(X, Y).  The latter
is useful for functions with complex results.  Two corrections to errno-
after-libm-call are attempted:

1. If the platform set errno to ERANGE due to underflow, clear errno.
   Some unknown subset of libm versions and link options do this.  It's
   allowed by C89, but I never figured anyone would do it.

2. If the platform did not set errno but overflow occurred, force
   errno to ERANGE.  C89 required setting errno to ERANGE, but C99
   doesn't.  Some unknown subset of libm versions and link options do
   it the C99 way now.

Bugfix candidate, but hold off until some Linux people actually try it,
with and without -lieee.  I'll send a help plea to Python-Dev.
</content>
</entry>
<entry>
<title>float_floor_div:  An expression like 3.//1j crashed the interpreter, or</title>
<updated>2001-12-11T20:31:34Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-12-11T20:31:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=77d8a4fc91aff2e4f25874fac2cb7c1915984cd1'/>
<id>urn:sha1:77d8a4fc91aff2e4f25874fac2cb7c1915984cd1</id>
<content type='text'>
delivered bizarre results.  Check float_divmod for a Py_NotImplemented
return and pass it along (instead of treating Py_NotImplemented as a
2-tuple).
CONVERT_TO_DOUBLE:  Added comments; this macro is obscure.
</content>
</entry>
<entry>
<title>float_int_div():  For clarity, move this closer to the other float</title>
<updated>2001-12-11T19:57:24Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-12-11T19:57:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=63a3571e1732176e0e784e0d0e6dac07c9162611'/>
<id>urn:sha1:63a3571e1732176e0e784e0d0e6dac07c9162611</id>
<content type='text'>
division functions, and rename to float_floor_div.
</content>
</entry>
<entry>
<title>PyFloat_AsStringEx():  This function takes an output char* but doesn't</title>
<updated>2001-11-28T22:43:45Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-11-28T22:43:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=97019e41102df409556a76ca347ce9cf020bf23f'/>
<id>urn:sha1:97019e41102df409556a76ca347ce9cf020bf23f</id>
<content type='text'>
pass the buffer length.  Stop using it.  It should be deprecated, but too
late in the release cycle to do that now.
New static format_float() does the same thing but requires passing the
buffer length too.  Use it instead.
</content>
</entry>
<entry>
<title>PyFloat_FromString(): Conversion of sprintf() to PyOS_snprintf() for</title>
<updated>2001-11-28T20:52:21Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2001-11-28T20:52:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=af8aef9ee241474c8764cb25319e17986cfb2ef6'/>
<id>urn:sha1:af8aef9ee241474c8764cb25319e17986cfb2ef6</id>
<content type='text'>
buffer overrun avoidance.
</content>
</entry>
<entry>
<title>float_divmod():  the code wasn't sick enough to stop the MS optimizer</title>
<updated>2001-11-01T23:59:56Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-11-01T23:59:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4e8ab5db38c84e981f1e4cd11fd375bf7469341e'/>
<id>urn:sha1:4e8ab5db38c84e981f1e4cd11fd375bf7469341e</id>
<content type='text'>
from optimizing away mod's sign adjustment when mod == 0; so it got
the intended result only in the debug build.
</content>
</entry>
<entry>
<title>SF bug #477221: abs and divmod act oddly with -0.0</title>
<updated>2001-11-01T23:12:27Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-11-01T23:12:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d2e40d6691899d5969b68cdf967d7b392b4e6e6b'/>
<id>urn:sha1:d2e40d6691899d5969b68cdf967d7b392b4e6e6b</id>
<content type='text'>
Try to ensure that divmod(-0.0, 1.0) -&gt; (-0.0, +0.0) across platforms.
It always did on Windows, and still does.  It didn't on Linux.  Alas,
there's no platform-independent way to write a test case for this.
Bugfix candidate.
</content>
</entry>
<entry>
<title>float_abs() again:  Guido pointed out that this could screw up in the</title>
<updated>2001-11-01T21:51:15Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-11-01T21:51:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=faf0cd21edde392d4d30e2e4f7d9fa2fb9973b71'/>
<id>urn:sha1:faf0cd21edde392d4d30e2e4f7d9fa2fb9973b71</id>
<content type='text'>
presence of NaNs.  So pass the issue on to the platform libm fabs();
after all, fabs() is a std C function because you can't implement it
correctly in portable C89.
</content>
</entry>
<entry>
<title>SF bug #477221: abs and divmod act oddly with -0.0.</title>
<updated>2001-11-01T20:09:42Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-11-01T20:09:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d2364e8e2dee675526fb35b07dab0e8f84268ec3'/>
<id>urn:sha1:d2364e8e2dee675526fb35b07dab0e8f84268ec3</id>
<content type='text'>
Partial fix.
float_abs():  ensure abs(-0.0) returns +0.0.
Bugfix candidate.
</content>
</entry>
<entry>
<title>SF patch #474590 -- RISC OS support</title>
<updated>2001-10-24T20:42:55Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-10-24T20:42:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e2ae77b8b8a62e648bb1864a9b36ef3280984404'/>
<id>urn:sha1:e2ae77b8b8a62e648bb1864a9b36ef3280984404</id>
<content type='text'>
</content>
</entry>
</feed>
