Skip to content

Commit 05ccbba

Browse files
committed
Move FloatingPoint.swift out of .gyb.
Rework Self._convert from integer, by making it require RawSignificand: FixedWidthInteger This requirement should have always been there, and the existing implementaiton wouldn't have actually worked correctly without it. Making it explcit makes the implementation quite a bit simpler, which is nice. Add fast-path conversion that will catch all concrete integer types without needing to be a concrete implementation itself. Room for further improvement, but good start.
1 parent ebfd97a commit 05ccbba

File tree

4 files changed

+212
-166
lines changed

4 files changed

+212
-166
lines changed

stdlib/public/core/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ set(SWIFTLIB_ESSENTIAL
6666
FixedArray.swift.gyb
6767
FlatMap.swift
6868
Flatten.swift
69-
FloatingPoint.swift.gyb
69+
FloatingPoint.swift
7070
FloatingPointParsing.swift.gyb
7171
FloatingPointTypes.swift.gyb
7272
Hashable.swift

0 commit comments

Comments
 (0)