@@ -1400,31 +1400,31 @@ ${assignmentOperatorComment(x.operator, True)}
1400
1400
}
1401
1401
1402
1402
/// A type that represents the words of this integer.
1403
- @_fixed_layout // FIXME(sil-serialize-all)
1403
+ @_fixed_layout
1404
1404
public struct Words : Rando mAccessCollection {
1405
1405
public typealias Indices = Range< Int>
1406
1406
public typealias SubSequence = Slice < ${ Self} . Words>
1407
1407
1408
- @usableFromInline // FIXME(sil-serialize-all)
1408
+ @usableFromInline
1409
1409
internal var _value: ${ Self}
1410
1410
1411
- @inlinable // FIXME(sil-serialize-all)
1411
+ @inlinable
1412
1412
public init( _ value: ${ Self} ) {
1413
1413
self . _value = value
1414
1414
}
1415
1415
1416
- @inlinable // FIXME(sil-serialize-all)
1416
+ @inlinable
1417
1417
public var count: Int {
1418
1418
return ( ${ bits} + ${ word_bits} - 1 ) / ${ word_bits}
1419
1419
}
1420
1420
1421
- @inlinable // FIXME(sil-serialize-all)
1421
+ @inlinable
1422
1422
public var startIndex: Int { return 0 }
1423
1423
1424
- @inlinable // FIXME(sil-serialize-all)
1424
+ @inlinable
1425
1425
public var endIndex: Int { return count }
1426
1426
1427
- @inlinable // FIXME(sil-serialize-all)
1427
+ @inlinable
1428
1428
public var indices: Indices { return startIndex ..< endIndex }
1429
1429
1430
1430
@_transparent
@@ -1433,7 +1433,7 @@ ${assignmentOperatorComment(x.operator, True)}
1433
1433
@_transparent
1434
1434
public func index( before i: Int) - > Int { return i - 1 }
1435
1435
1436
- @inlinable // FIXME(sil-serialize-all)
1436
+ @inlinable
1437
1437
public subscript( position: Int) - > UInt {
1438
1438
get {
1439
1439
_precondition ( position >= 0 , " Negative word index " )
@@ -1530,7 +1530,7 @@ ${assignmentOperatorComment(x.operator, True)}
1530
1530
/// - Parameter other: The value to multiply this value by.
1531
1531
/// - Returns: A tuple containing the high and low parts of the result of
1532
1532
/// multiplying this value and `other`.
1533
- @inlinable // FIXME(sil-serialize-all)
1533
+ @inlinable
1534
1534
public func multipliedFullWidth( by other: ${ Self} )
1535
1535
- > ( high: ${ Self} , low: ${ Self} . Magnitude) {
1536
1536
// FIXME(integers): tests
@@ -1563,7 +1563,7 @@ ${assignmentOperatorComment(x.operator, True)}
1563
1563
/// sign, if the type is signed.
1564
1564
/// - Returns: A tuple containing the quotient and remainder of `dividend`
1565
1565
/// divided by this value.
1566
- @inlinable // FIXME(sil-serialize-all)
1566
+ @inlinable
1567
1567
public func dividingFullWidth(
1568
1568
_ dividend: ( high: ${ Self} , low: ${ Self} . Magnitude)
1569
1569
) - > ( quotient: ${ Self} , remainder: ${ Self} ) {
@@ -1632,17 +1632,14 @@ ${assignmentOperatorComment(x.operator, True)}
1632
1632
}
1633
1633
% end
1634
1634
1635
- @inlinable // FIXME(sil-serialize-all)
1636
1635
@available ( swift, obsoleted: 4.0 , message: " Use initializers instead " )
1637
1636
public func to${ U} IntMax( ) - > ${ U} Int64 {
1638
1637
return numericCast ( self )
1639
1638
}
1640
1639
1641
- @inlinable // FIXME(sil-serialize-all)
1642
1640
@available ( swift, obsoleted: 4 , message: " Use bitWidth instead. " )
1643
1641
public static var _sizeInBits : ${ Self} { return ${ bits} }
1644
1642
1645
- @inlinable // FIXME(sil-serialize-all)
1646
1643
@available( swift, obsoleted: 4 )
1647
1644
public static var _sizeInBytes: ${ Self} { return ${ bits} / 8 }
1648
1645
@@ -1651,7 +1648,7 @@ ${assignmentOperatorComment(x.operator, True)}
1651
1648
///
1652
1649
/// - Returns: The sign of this number, expressed as an integer of the same
1653
1650
/// type.
1654
- @inlinable // FIXME(sil-serialize-all)
1651
+ @inlinable
1655
1652
@inline( __always)
1656
1653
public func signum( ) - > ${ Self} {
1657
1654
let isPositive = ${ Self} ( Builtin . zext_Int1_Int ${ bits} (
@@ -1708,7 +1705,6 @@ extension ${Self} {
1708
1705
///
1709
1706
/// - Parameter source: An integer to use as the source of the new value's
1710
1707
/// bit pattern.
1711
- @inlinable // FIXME(sil-serialize-all)
1712
1708
@available ( swift, obsoleted: 4.0 , renamed: " init(truncatingIfNeeded:) " )
1713
1709
@_transparent
1714
1710
public init( truncatingBitPattern source: ${ Src} ) {
@@ -1746,7 +1742,6 @@ ${operatorComment(x.operator, True)}
1746
1742
% for op in maskingShifts:
1747
1743
1748
1744
${ operatorComment ( x. operator, True) }
1749
- @inlinable // FIXME(sil-serialize-all)
1750
1745
@available ( swift, obsoleted: 4 )
1751
1746
@_semantics ( " optimize.sil.specialize.generic.partial.never " )
1752
1747
@_transparent
@@ -1759,7 +1754,6 @@ ${operatorComment(x.operator, True)}
1759
1754
}
1760
1755
1761
1756
${ assignmentOperatorComment ( x. operator, True) }
1762
- @inlinable // FIXME(sil-serialize-all)
1763
1757
@available ( swift, obsoleted: 4 )
1764
1758
@_semantics ( " optimize.sil.specialize.generic.partial.never " )
1765
1759
@_transparent
@@ -1837,7 +1831,8 @@ extension Int {
1837
1831
}
1838
1832
1839
1833
// FIXME(integers): switch to using `FixedWidthInteger.unsafeAdding`
1840
- @inlinable // FIXME(sil-serialize-all)
1834
+ @_transparent
1835
+ @inlinable
1841
1836
internal func _unsafePlus( _ lhs: Int, _ rhs: Int) - > Int {
1842
1837
#if INTERNAL_CHECKS_ENABLED
1843
1838
return lhs + rhs
@@ -1847,7 +1842,8 @@ internal func _unsafePlus(_ lhs: Int, _ rhs: Int) -> Int {
1847
1842
}
1848
1843
1849
1844
// FIXME(integers): switch to using `FixedWidthInteger.unsafeSubtracting`
1850
- @inlinable // FIXME(sil-serialize-all)
1845
+ @_transparent
1846
+ @inlinable
1851
1847
internal func _unsafeMinus( _ lhs: Int, _ rhs: Int) - > Int {
1852
1848
#if INTERNAL_CHECKS_ENABLED
1853
1849
return lhs - rhs
0 commit comments