]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42161: mathmodule.c: move _PyLong_GetOne() loop invariant (GH-26391)
authorVictor Stinner <vstinner@python.org>
Wed, 26 May 2021 22:51:07 +0000 (00:51 +0200)
committerGitHub <noreply@github.com>
Wed, 26 May 2021 22:51:07 +0000 (00:51 +0200)
commit3e7ee02327db13e4337374597cdc4458ecb9e3ad
treecf61463ec1ded73c693c981875d68e483c2af552
parentd8fd8c8568cbc2f53c1abeda3596a89a46f0e3d7
bpo-42161: mathmodule.c: move _PyLong_GetOne() loop invariant (GH-26391)

Move _PyLong_GetZero() and _PyLong_GetOne() loop invariants outside
loops in functions:

* math.comb()
* math.gcd()
* math.lcm()
* math.perm()
Modules/mathmodule.c