Skip to content

Conversation

@tim-one
Copy link
Member

@tim-onetim-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-onetim-one self-assigned this Jan 24, 2022
Copy link
Member

@mdickinsonmdickinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The macOS GitHub Actions failure looks unrelated.

@tim-onetim-one merged commit 7c26472 into python:mainJan 25, 2022
@tim-onetim-one deleted the xdiv branch January 25, 2022 01:06
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@tim-one@gpshead@mdickinson@the-knights-who-say-ni@bedevere-bot