You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[5.3] Improved codgen for FP inits from Integer (swiftlang#32636)
* Provide an implementation of init?<T:BinaryInteger>(exactly:T) on each stdlib FP type. (swiftlang#32632)
Previously these always went through the FloatingPoint-provided default implementation, which is not particularly efficient. Also try removing inlinable from the generic _convert hooks, since we probably never want to actually inline them.
* Add explicit init from BinaryInteger to CGFloat
The override was previously missing, which meant that we fell back on the generic implementation; we should simply forward this to the NativeType implementation instead.
0 commit comments