File tree Expand file tree Collapse file tree 3 files changed +30
-30
lines changed Expand file tree Collapse file tree 3 files changed +30
-30
lines changed Original file line number Diff line number Diff line change @@ -761,26 +761,6 @@ extension Int {
761
761
}
762
762
}
763
763
764
- @_transparent
765
- @inlinable
766
- internal func _unsafePlus( _ lhs: Int , _ rhs: Int ) -> Int {
767
- #if INTERNAL_CHECKS_ENABLED
768
- return lhs + rhs
769
- #else
770
- return lhs &+ rhs
771
- #endif
772
- }
773
-
774
- @_transparent
775
- @inlinable
776
- internal func _unsafeMinus( _ lhs: Int , _ rhs: Int ) -> Int {
777
- #if INTERNAL_CHECKS_ENABLED
778
- return lhs - rhs
779
- #else
780
- return lhs &- rhs
781
- #endif
782
- }
783
-
784
764
@_unavailableInEmbedded
785
765
internal struct _IntegerAnyHashableBox <
786
766
Base: FixedWidthInteger
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the Swift.org open source project
4
4
//
5
- // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
5
+ // Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors
6
6
// Licensed under Apache License v2.0 with Runtime Library Exception
7
7
//
8
8
// See https://swift.org/LICENSE.txt for license information
@@ -87,3 +87,31 @@ extension String.UTF16View {
87
87
@inlinable @inline ( __always)
88
88
internal var _shortHeuristic : Int { return 32 }
89
89
}
90
+
91
+ @inlinable @_transparent
92
+ internal func unimplemented_utf8_32bit(
93
+ _ message: String = " " ,
94
+ file: StaticString = #file, line: UInt = #line
95
+ ) -> Never {
96
+ fatalError ( " 32-bit: Unimplemented for UTF-8 support " , file: file, line: line)
97
+ }
98
+
99
+ @_transparent
100
+ @inlinable
101
+ internal func _unsafePlus( _ lhs: Int , _ rhs: Int ) -> Int {
102
+ #if INTERNAL_CHECKS_ENABLED
103
+ return lhs + rhs
104
+ #else
105
+ return lhs &+ rhs
106
+ #endif
107
+ }
108
+
109
+ @_transparent
110
+ @inlinable
111
+ internal func _unsafeMinus( _ lhs: Int , _ rhs: Int ) -> Int {
112
+ #if INTERNAL_CHECKS_ENABLED
113
+ return lhs - rhs
114
+ #else
115
+ return lhs &- rhs
116
+ #endif
117
+ }
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the Swift.org open source project
4
4
//
5
- // Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
5
+ // Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors
6
6
// Licensed under Apache License v2.0 with Runtime Library Exception
7
7
//
8
8
// See https://swift.org/LICENSE.txt for license information
12
12
13
13
import SwiftShims
14
14
15
- @inlinable @_transparent
16
- internal func unimplemented_utf8_32bit(
17
- _ message: String = " " ,
18
- file: StaticString = #file, line: UInt = #line
19
- ) -> Never {
20
- fatalError ( " 32-bit: Unimplemented for UTF-8 support " , file: file, line: line)
21
- }
22
-
23
15
/// A Unicode string value that is a collection of characters.
24
16
///
25
17
/// A string is a series of characters, such as `"Swift"`, that forms a
You can’t perform that action at this time.
0 commit comments