We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
mostSignificantBit
At some point I tried to add clarity with the following assertions:
mostSignificantBit == words .last! .mostSignificantBit // true ⚠️ leastSignificantBit == words.first!.leastSignificantBit // true ✅
But the mostSignificantBit part is only true for multiples of UInt.bitWidth.
UInt.bitWidth
The text was updated successfully, but these errors were encountered:
I'm unsure how valuable this property is, but I like the symmetry.
Sorry, something went wrong.
It should really be the following, but I'm not convinced it adds clarity:
mostSignificantBit == (self & 1 << (bitWidth - 1) != 0) leastSignificantBit == (self & 1 != 0)
I removed that section in 967806c.
No branches or pull requests
At some point I tried to add clarity with the following assertions:
But the
mostSignificantBit
part is only true for multiples ofUInt.bitWidth
.The text was updated successfully, but these errors were encountered: