File tree Expand file tree Collapse file tree 3 files changed +9
-16
lines changed
test/api-digester/Outputs Expand file tree Collapse file tree 3 files changed +9
-16
lines changed Original file line number Diff line number Diff line change @@ -79,30 +79,19 @@ public struct ${Self} {
79
79
80
80
extension ${ Self} : CustomStringConvertible {
81
81
/// A textual representation of the value.
82
- @inlinable
83
82
public var description: String {
84
- if isFinite {
85
- return _float ${ bits} ToString( self , debug: false )
86
- } else if isNaN {
83
+ if isNaN {
87
84
return " nan "
88
- } else if sign == . minus {
89
- return " -inf "
90
85
} else {
91
- return " inf "
86
+ return _float $ { bits } ToString ( self , debug : false )
92
87
}
93
88
}
94
89
}
95
90
96
91
extension ${ Self} : CustomDebugStringConvertible {
97
92
/// A textual representation of the value, suitable for debugging.
98
93
public var debugDescription: String {
99
- if isFinite || isNaN {
100
- return _float ${ bits} ToString( self , debug: true )
101
- } else if sign == . minus {
102
- return " -inf "
103
- } else {
104
- return " inf "
105
- }
94
+ return _float ${ bits} ToString( self , debug: true )
106
95
}
107
96
}
108
97
Original file line number Diff line number Diff line change @@ -374,15 +374,13 @@ internal struct _Buffer72 {
374
374
#if !os(Windows) && (arch(i386) || arch(x86_64))
375
375
% end
376
376
377
- @usableFromInline // FIXME(sil-serialize-all)
378
377
@_silgen_name ( " swift_float${bits}ToString " )
379
378
internal func _float${ bits} ToStringImpl(
380
379
_ buffer: UnsafeMutablePointer < UTF8 . CodeUnit > ,
381
380
_ bufferLength: UInt, _ value: Float ${ bits} ,
382
381
_ debug: Bool
383
382
) - > UInt
384
383
385
- @inlinable // FIXME(sil-serialize-all)
386
384
internal func _float${ bits} ToString(
387
385
_ value: Float${ bits} , debug: Bool
388
386
) -> String {
Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ Constructor _DropFirstSequence.init(_iterator:limit:dropped:) has been removed
14
14
Constructor _PrefixSequence.init(_iterator:maxLength:taken:) has been removed
15
15
Func _DropFirstSequence.next() has been removed
16
16
Func _PrefixSequence.next() has been removed
17
+ Func _float32ToString(_:debug:) has been removed
18
+ Func _float32ToStringImpl(_:_:_:_:) has been removed
19
+ Func _float64ToString(_:debug:) has been removed
20
+ Func _float64ToStringImpl(_:_:_:_:) has been removed
21
+ Func _float80ToString(_:debug:) has been removed
22
+ Func _float80ToStringImpl(_:_:_:_:) has been removed
17
23
Var _DropFirstSequence._dropped has been removed
18
24
Var _DropFirstSequence._iterator has been removed
19
25
Var _PrefixSequence._iterator has been removed
You can’t perform that action at this time.
0 commit comments