File tree 3 files changed +28
-30
lines changed
3 files changed +28
-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,29 @@ extension String.UTF16View {
87
87
@inlinable @inline ( __always)
88
88
internal var _shortHeuristic : Int { return 32 }
89
89
}
90
+
91
+ @usableFromInline
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
+ @usableFromInline
100
+ internal func _unsafePlus( _ lhs: Int , _ rhs: Int ) -> Int {
101
+ #if INTERNAL_CHECKS_ENABLED
102
+ return lhs + rhs
103
+ #else
104
+ return lhs &+ rhs
105
+ #endif
106
+ }
107
+
108
+ @usableFromInline
109
+ internal func _unsafeMinus( _ lhs: Int , _ rhs: Int ) -> Int {
110
+ #if INTERNAL_CHECKS_ENABLED
111
+ return lhs - rhs
112
+ #else
113
+ return lhs &- rhs
114
+ #endif
115
+ }
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