Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
bpo-44946: Streamline operators and creation of ints for common case of single 'digit'.#27832
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
17 commits Select commitHold shift + click to select a range
da57f0b
Streamline binary operations and creating new int objects for common …
markshannon0533a9f
Make sure that all ints, even internal, temporary ones, have at least…
markshannon9349daa
Readability improvements as suggested by Victor Stinner.
markshannon96496e2
Prefix private function name with _
markshannon5e4aad5
Reduce the number of casts.
markshannon59ba476
Avoid casting away top bits.
markshannon0d3ca1d
Streamline integer negation and invert a bit. Suggested by Mark Dicki…
markshannonc73333b
Clarify comment and internal function name. Remove a bit of redundant…
markshannon16d3167
Remove two more narrowing casts.
markshannonf20a2a8
Change _PyLong_FromLarge to use correctly sized int.
markshannonab2b908
Avoid more narrowings.
markshannone43060a
Revert get_small_int to taking a sdigit. Place narrowing casts in cor…
markshannoned2a430
Use _PyLong_FromSTwoDigits not PyLong_FromLong in long_add.
markshannon1f2d47c
Implement PyLong_FromLong separately from _PyLong_FromSTwoDigits to a…
markshannon649c311
Don't overflow shift in PyLong_FromLong.
markshannona69f420
Convert IS_MEDIUM_INT macro to inline function.
markshannon47571ff
Edit comment
markshannonFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
PrevPrevious commit
Edit comment
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit47571ffaeee4f9758876bb0de9e1e8ee594a36c7
There are no files selected for viewing
3 changes: 1 addition & 2 deletionsObjects/longobject.c
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.