@@ -72,8 +72,10 @@ internal func _swift_stdlib_atomicCompareExchangeStrongInt(
72
72
}
73
73
74
74
75
- @usableFromInline // used by SwiftPrivate._stdlib_AtomicInt
76
- internal func _swift_stdlib_atomicLoadInt(
75
+ // FIXME: ideally it should not be here, at the very least not public, but
76
+ // @usableFromInline internal to be used by SwiftPrivate._stdlib_AtomicInt
77
+ public // Existing uses outside stdlib
78
+ func _swift_stdlib_atomicLoadInt(
77
79
object target: UnsafeMutablePointer<Int>) -> Int {
78
80
#if arch(i386) || arch(arm) || arch(arm64_32)
79
81
let value = Builtin.atomicload_seqcst_Int32(target._rawValue)
@@ -97,8 +99,10 @@ internal func _swift_stdlib_atomicStoreInt(
97
99
98
100
% for operation in ['Add', 'And', 'Or', 'Xor']:
99
101
// Warning: no overflow checking.
100
- @usableFromInline // used by SwiftPrivate._stdlib_AtomicInt
101
- internal func _swift_stdlib_atomicFetch${operation}Int(
102
+ // FIXME: ideally it should not be here, at the very least not public, but
103
+ // @usableFromInline internal to be used by SwiftPrivate._stdlib_AtomicInt
104
+ public // Existing uses outside stdlib
105
+ func _swift_stdlib_atomicFetch${operation}Int(
102
106
object target: UnsafeMutablePointer<Int>,
103
107
operand: Int) -> Int {
104
108
let rawTarget = UnsafeMutableRawPointer(target)
0 commit comments