We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 317e681 commit 7627319Copy full SHA for 7627319
stdlib/public/core/DoubleWidth.swift.gyb
@@ -297,6 +297,11 @@ public struct DoubleWidth<Base : FixedWidthInteger> :
297
return (result, didCarry || hadPositiveOverflow)
298
}
299
300
+ // Specialize for the most popular types.
301
+ @_specialize(where Base == Int)
302
+ @_specialize(where Base == UInt)
303
+ @_specialize(where Base == Int64)
304
+ @_specialize(where Base == UInt64)
305
public func quotientAndRemainder(dividingBy other: DoubleWidth)
306
-> (quotient: DoubleWidth, remainder: DoubleWidth) {
307
let isNegative = (self < (0 as DoubleWidth)) != (other < (0 as DoubleWidth))
0 commit comments