]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46406: Faster single digit int division. (#30626)
authorGregory P. Smith <greg@krypto.org>
Sun, 23 Jan 2022 10:00:41 +0000 (02:00 -0800)
committerGitHub <noreply@github.com>
Sun, 23 Jan 2022 10:00:41 +0000 (10:00 +0000)
commitc7f20f1cc8c20654e5d539552604362feb9b0512
tree944c92342905e40464f231804208c4bc05d83404
parent83a0ef2162aa379071e243f1b696aa6814edcd2a
bpo-46406: Faster single digit int division. (#30626)

* bpo-46406: Faster single digit int division.

This expresses the algorithm in a more basic manner resulting in better
instruction generation by todays compilers.

See https://mail.python.org/archives/list/python-dev@python.org/thread/ZICIMX5VFCX4IOFH5NUPVHCUJCQ4Q7QM/#NEUNFZU3TQU4CPTYZNF3WCN7DOJBBTK5
Misc/NEWS.d/next/Core and Builtins/2022-01-16-15-40-11.bpo-46406.g0mke-.rst [new file with mode: 0644]
Objects/longobject.c