-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[stdlib] Partially ungyb Integers #19036
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
Conversation
@stephentyrone 's idea. |
@swift-ci Please test |
stdlib/public/core/Integers.swift
Outdated
// that shift < Self.bitWidth. Not masking results in | ||
// infinite recursion. | ||
result ^= Self(_truncatingBits: neg ? ~word : word) &<< shift | ||
shift += Self(Int.bitWidth) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a little worried about this line. It used to be a literal instead of a Self(Int.bitWidth)
...
@swift-ci please test compiler performance |
@swift-ci Please benchmark |
!!! Couldn't read commit file !!! |
Build comment file:Build failed before running benchmark. |
Build failed |
The new file straucture is similar to that of floating point types, where protocols live in one file, and concrete types – in another.
@swift-ci Please test macOS platform |
Build failed |
@swift-ci Please smoke test Linux platform |
@swift-ci Please smoke test macOS platform |
@swift-ci Please benchmark |
@swift-ci Please test compiler performance |
!!! Couldn't read commit file !!! |
Build comment file:Performance: -Onone
How to read the dataThe tables contain differences in performance which are larger than 8% and differences in code size which are larger than 1%.If you see any unexpected regressions, you should consider fixing the regressions before you merge the PR. Noise: Sometimes the performance results (not code size!) contain false alarms. Unexpected regressions which are marked with '(?)' are probably noise. If you see regressions which you cannot explain you can try to run the benchmarks again. If regressions still show up, please consult with the performance team (@eeckstein). Hardware Overview
|
@swift-ci Please test macOS platform |
finally |
The new file straucture is similar to that of floating point types,
where protocols live in one file, and concrete types – in another.