-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[stdlib] DoubleWidth refinements #11161
Conversation
@swift-ci Please test |
Build failed |
@swift-ci Please test OS X platform |
Build failed |
@swift-ci Please test OS X platform |
Can we please wait till #11203 lands? Please? |
(rhs._storage.low - numericCast(Base.bitWidth))) | ||
} | ||
|
||
let t = Base.bitWidth > rhs._storage.low |
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.
t
for temporary?
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.
LGTM, apart from the t
variable name. Maybe newLow
and newHigh
would read better?
@swift-ci Please smoke test |
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.
[stdlib] DoubleWidth refinements
This adds tests for masking bit shifts to
DoubleWidth
and addresses the feedback from @dabrahams here: #10131