]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-31031: Unify duplicate bits_in_digit and bit_length (GH-2866)
authorNiklas Fiekas <niklas.fiekas@backscattering.de>
Thu, 16 Jan 2020 14:09:19 +0000 (15:09 +0100)
committerVictor Stinner <vstinner@python.org>
Thu, 16 Jan 2020 14:09:19 +0000 (15:09 +0100)
commitc5b79003f5fe6aa28a2a028680367839ba8677db
treeef8be6cb5538ff0bf96478f6feed362a71d95dc2
parent4691a2f2a2b8174a6c958ce6976ed5f3354c9504
bpo-31031: Unify duplicate bits_in_digit and bit_length (GH-2866)

Add _Py_bit_length() to unify duplicate bits_in_digit() and bit_length().
Include/pymath.h
Modules/mathmodule.c
Objects/longobject.c
Python/pymath.c