mirror of
https://github.com/apple/swift-numerics
synced 2026-11-26 04:57:53 +00:00
[BigInt] Combine *= and << into simpler <<=
This commit is contained in:
1 parent
506ea36331
commit
98023c3575
1 file changed
+1
-1
@@ -350,7 +350,7 @@ extension BigInt: BinaryInteger {
|
||||
|
||||
self = BigInt(source.significandBitPattern)
|
||||
self |= BigInt(1) << T.significandBitCount
|
||||
self *= BigInt(1) << source.exponent
|
||||
self <<= source.exponent
|
||||
self >>= T.significandBitCount
|
||||
|
||||
if isNegative {
|
||||
|
||||
Reference in new issue
Block a user