Skip to content

Commit b671f38

Browse files
committed
Make _UInt128 a little more like UInt128
1 parent 4c0b580 commit b671f38

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

stdlib/public/core/LegacyInt128.swift.gyb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ internal struct _${U}Int128 {
2121

2222
/// The low part of the value.
2323
internal var low: Low
24+
internal var _low: Low { low }
2425

2526
/// The high part of the value.
2627
internal var high: High
28+
internal var _high: High { high }
2729

2830
/// Creates a new instance from the given tuple of high and low parts.
2931
///
@@ -39,6 +41,11 @@ internal struct _${U}Int128 {
3941
self.high = high
4042
}
4143

44+
internal init(_low: Low, _high: High) {
45+
self.low = _low
46+
self.high = _high
47+
}
48+
4249
internal init() {
4350
self.init(high: 0, low: 0)
4451
}

0 commit comments

Comments
 (0)