<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Modules/mathmodule.c, branch fix-cf-feature-versiob</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-29782: Consolidate _Py_Bit_Length() (GH-20739)</title>
<updated>2020-06-15T12:33:48+00:00</updated>
<author>
<name>Niklas Fiekas</name>
<email>niklas.fiekas@backscattering.de</email>
</author>
<published>2020-06-15T12:33:48+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=794e7d1ab2d7afe70fe0dd87ca8174ac860413e4'/>
<id>794e7d1ab2d7afe70fe0dd87ca8174ac860413e4</id>
<content type='text'>
In GH-2866, _Py_Bit_Length() was added to pymath.h for lack of a better
location. GH-20518 added a more appropriate header file for bit utilities. It
also shows how to properly use intrinsics. This allows reconsidering bpo-29782.

* Move the function to the new header.
* Changed return type to match __builtin_clzl() and reviewed usage.
* Use intrinsics where available.
* Pick a fallback implementation suitable for inlining.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In GH-2866, _Py_Bit_Length() was added to pymath.h for lack of a better
location. GH-20518 added a more appropriate header file for bit utilities. It
also shows how to properly use intrinsics. This allows reconsidering bpo-29782.

* Move the function to the new header.
* Changed return type to match __builtin_clzl() and reviewed usage.
* Use intrinsics where available.
* Pick a fallback implementation suitable for inlining.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40792: Make the result of PyNumber_Index() always having exact type int. (GH-20443)</title>
<updated>2020-05-28T07:33:45+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-05-28T07:33:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=5f4b229df7812f1788287095eb6b138bb21876a4'/>
<id>5f4b229df7812f1788287095eb6b138bb21876a4</id>
<content type='text'>
Previously, the result could have been an instance of a subclass of int.

Also revert bpo-26202 and make attributes start, stop and step of the range
object having exact type int.

Add private function _PyNumber_Index() which preserves the old behavior
of PyNumber_Index() for performance to use it in the conversion functions
like PyLong_AsLong().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, the result could have been an instance of a subclass of int.

Also revert bpo-26202 and make attributes start, stop and step of the range
object having exact type int.

Add private function _PyNumber_Index() which preserves the old behavior
of PyNumber_Index() for performance to use it in the conversion functions
like PyLong_AsLong().</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37999: No longer use __int__ in implicit integer conversions. (GH-15636)</title>
<updated>2020-05-26T15:43:38+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-05-26T15:43:38+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=578c3955e0222ec7b3146197467fbb0fcfae12fe'/>
<id>578c3955e0222ec7b3146197467fbb0fcfae12fe</id>
<content type='text'>
Only __index__ should be used to make integer conversions lossless.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Only __index__ should be used to make integer conversions lossless.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-1635741: Port math module to multiphase initialization (GH-19243)</title>
<updated>2020-03-31T14:33:22+00:00</updated>
<author>
<name>Dong-hee Na</name>
<email>donghee.na92@gmail.com</email>
</author>
<published>2020-03-31T14:33:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=5be8241392453751beea21d2e32096c15a8d47db'/>
<id>5be8241392453751beea21d2e32096c15a8d47db</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-39871: Fix possible SystemError in atan2, copysign and remainder (GH-18806)</title>
<updated>2020-03-14T10:45:32+00:00</updated>
<author>
<name>Zackery Spytz</name>
<email>zspytz@gmail.com</email>
</author>
<published>2020-03-14T10:45:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=5208b4b37953a406db0ed6a9db545c2948dde989'/>
<id>5208b4b37953a406db0ed6a9db545c2948dde989</id>
<content type='text'>
In math_2(), the first PyFloat_AsDouble() call should be checked
for failure before the second call.

Co-authored-by: Mark Dickinson &lt;dickinsm@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In math_2(), the first PyFloat_AsDouble() call should be checked
for failure before the second call.

Co-authored-by: Mark Dickinson &lt;dickinsm@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-39648: Expand math.gcd() and math.lcm() to handle multiple arguments. (GH-18604)</title>
<updated>2020-02-23T11:21:29+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-02-23T11:21:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=559e7f165ad03731e6bc2211c0e6d8d9c02fb549'/>
<id>559e7f165ad03731e6bc2211c0e6d8d9c02fb549</id>
<content type='text'>
* bpo-39648: Expand math.gcd() and math.lcm() to handle multiple arguments.

* Simplify fast path.

* Difine lcm() without arguments returning 1.

* Apply suggestions from code review

Co-Authored-By: Mark Dickinson &lt;dickinsm@gmail.com&gt;

Co-authored-by: Mark Dickinson &lt;dickinsm@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* bpo-39648: Expand math.gcd() and math.lcm() to handle multiple arguments.

* Simplify fast path.

* Difine lcm() without arguments returning 1.

* Apply suggestions from code review

Co-Authored-By: Mark Dickinson &lt;dickinsm@gmail.com&gt;

Co-authored-by: Mark Dickinson &lt;dickinsm@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-39479:Add math.lcm() function: Least Common Multiple (#18547)</title>
<updated>2020-02-19T18:21:37+00:00</updated>
<author>
<name>ananthan-123</name>
<email>ananthakrishnan15.2001@gmail.com</email>
</author>
<published>2020-02-19T18:21:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=f2ee21d858bc03dd801b97afe60ee2ea289e2fe9'/>
<id>f2ee21d858bc03dd801b97afe60ee2ea289e2fe9</id>
<content type='text'>
* Update math.rst

* Update math.rst

* updated whats new

* Update test_math.py

* Update mathmodule.c

* Update mathmodule.c.h

* Update ACKS

* 📜🤖 Added by blurb_it.

* Update 3.9.rst

* Update 2020-02-18-12-37-16.bpo-39479.j3UcCq.rst

* Update math.rst

* Update 2020-02-18-12-37-16.bpo-39479.j3UcCq.rst

* Update test_math.py

* Update ACKS

* Update mathmodule.c.h

* Update mathmodule.c

* Update mathmodule.c.h

* Update mathmodule.c.h

Co-authored-by: blurb-it[bot] &lt;43283697+blurb-it[bot]@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Update math.rst

* Update math.rst

* updated whats new

* Update test_math.py

* Update mathmodule.c

* Update mathmodule.c.h

* Update ACKS

* 📜🤖 Added by blurb_it.

* Update 3.9.rst

* Update 2020-02-18-12-37-16.bpo-39479.j3UcCq.rst

* Update math.rst

* Update 2020-02-18-12-37-16.bpo-39479.j3UcCq.rst

* Update test_math.py

* Update ACKS

* Update mathmodule.c.h

* Update mathmodule.c

* Update mathmodule.c.h

* Update mathmodule.c.h

Co-authored-by: blurb-it[bot] &lt;43283697+blurb-it[bot]@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-35081: Move dtoa.h header to the internal C API (GH-18489)</title>
<updated>2020-02-12T21:54:42+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-02-12T21:54:42+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=e9e7d284c434768333fdfb53a3663eae74cb995a'/>
<id>e9e7d284c434768333fdfb53a3663eae74cb995a</id>
<content type='text'>
Move the dtoa.h header file to the internal C API as pycore_dtoa.h:
it only contains private functions (prefixed by "_Py").

The math and cmath modules must now be compiled with the
Py_BUILD_CORE macro defined.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move the dtoa.h header file to the internal C API as pycore_dtoa.h:
it only contains private functions (prefixed by "_Py").

The math and cmath modules must now be compiled with the
Py_BUILD_CORE macro defined.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-39396: Fix math.nextafter(-0.0, +0.0) on AIX 7.1 (GH-18094)</title>
<updated>2020-01-21T10:14:10+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-01-21T10:14:10+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=85ead4fc62829cb7ef2eb0af1a2933282f58c629'/>
<id>85ead4fc62829cb7ef2eb0af1a2933282f58c629</id>
<content type='text'>
Move also math.nextafter() on math.ulp() tests from IsCloseTests to
MathTests.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move also math.nextafter() on math.ulp() tests from IsCloseTests to
MathTests.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31031: Unify duplicate bits_in_digit and bit_length (GH-2866)</title>
<updated>2020-01-16T14:09:19+00:00</updated>
<author>
<name>Niklas Fiekas</name>
<email>niklas.fiekas@backscattering.de</email>
</author>
<published>2020-01-16T14:09:19+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=c5b79003f5fe6aa28a2a028680367839ba8677db'/>
<id>c5b79003f5fe6aa28a2a028680367839ba8677db</id>
<content type='text'>
Add _Py_bit_length() to unify duplicate bits_in_digit() and bit_length().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add _Py_bit_length() to unify duplicate bits_in_digit() and bit_length().</pre>
</div>
</content>
</entry>
</feed>
