Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from Jan 25, 2022

Conversation

tim-one
Copy link
Member

@tim-one tim-one commented Jan 24, 2022

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.

https://bugs.python.org/issue46504

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 instructioh, but convincing C to exploit that requires writing
_less_ "clever" C code.
@tim-one tim-one self-assigned this Jan 24, 2022
@tim-one tim-one requested review from gpshead and mdickinson Jan 24, 2022
Copy link
Member

@mdickinson mdickinson left a comment

LGTM. The macOS GitHub Actions failure looks unrelated.

Objects/longobject.c Show resolved Hide resolved
@tim-one tim-one merged commit 7c26472 into python:main Jan 25, 2022
10 of 11 checks passed
@tim-one tim-one deleted the xdiv branch Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants