]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46504: faster code for trial quotient in x_divrem() (GH-30856)
authorTim Peters <tim.peters@gmail.com>
Tue, 25 Jan 2022 01:06:00 +0000 (19:06 -0600)
committerGitHub <noreply@github.com>
Tue, 25 Jan 2022 01:06:00 +0000 (19:06 -0600)
commit7c26472d09548905d8c158b26b6a2b12de6cdc32
tree282ffe1c879e53091e01aa2bd4bce7c7d1f369dd
parentb18fd54f8c27e4b2aac222e75ac58aa85e5a7988
bpo-46504: faster code for trial quotient in x_divrem() (GH-30856)

* bpo-46504: faster code for trial quotient in x_divrem()

This brings x_divrem() back into synch with x_divrem1(), which was changed
in bpo-46406 to generate faster code to find machine-word division
quotients and remainders. Modern processors compute both with a single
machine instruction, but convincing C to exploit that requires writing
_less_ "clever" C code.
Objects/longobject.c