Skip to content

Commit e975445

Browse files
committed
[stdlib] Make UInt.Words.var internal
We don’t need Words’ members to be @_transparent; simple conversions use _lowWord instead.
1 parent 1dccb45 commit e975445

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

stdlib/public/core/Integers.swift.gyb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2776,25 +2776,20 @@ ${assignmentOperatorComment(x.operator, True)}
27762776
public typealias Indices = CountableRange<Int>
27772777
public typealias SubSequence = BidirectionalSlice<${Self}.Words>
27782778

2779-
public var _value: ${Self}
2779+
var _value: ${Self}
27802780

2781-
@_transparent
27822781
public init(_ value: ${Self}) {
27832782
self._value = value
27842783
}
27852784

2786-
@_transparent
27872785
public var count: Int {
27882786
return (${bits} + ${word_bits} - 1) / ${word_bits}
27892787
}
27902788

2791-
@_transparent
27922789
public var startIndex: Int { return 0 }
27932790

2794-
@_transparent
27952791
public var endIndex: Int { return count }
27962792

2797-
@_transparent
27982793
public var indices: Indices { return startIndex ..< endIndex }
27992794

28002795
@_transparent
@@ -2804,7 +2799,6 @@ ${assignmentOperatorComment(x.operator, True)}
28042799
public func index(before i: Int) -> Int { return i - 1 }
28052800

28062801
public subscript(position: Int) -> UInt {
2807-
@_transparent
28082802
get {
28092803
_precondition(position >= 0, "Negative word index")
28102804
_precondition(position < endIndex, "Word index out of range")

0 commit comments

Comments
 (0)