FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-46504: faster code for trial quotient in x_divrem() by tim-one · Pull Request #30856 · python/cpython · GitHub

/ cpython Public

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

Merged
tim-one merged 2 commits into
python:mainfrom
tim-one:xdiv
Jan 25, 2022
Merged

bpo-46504: faster code for trial quotient in x_divrem()#30856
tim-one merged 2 commits into
python:mainfrom
tim-one:xdiv

Conversation

tim-one commented Jan 24, 2022
edited
Loading

Copy link
Copy Markdown
Member

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 self-assigned this Jan 24, 2022
tim-one requested review from gpshead and mdickinson January 24, 2022 19:39

mdickinson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM. The macOS GitHub Actions failure looks unrelated.

Comment thread Objects/longobject.c
tim-one merged commit 7c26472 into python:main Jan 25, 2022
tim-one deleted the xdiv branch January 25, 2022 01:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

5 participants


Back | FazBrowse Home | New Git URL