@@ -74,9 +74,6 @@ internal func _swift_stdlib_atomicCompareExchangeStrongInt(
74
74
#elseif _pointerBitWidth(_32)
75
75
let (oldValue, won) = Builtin.cmpxchg_seqcst_seqcst_Int32(
76
76
target._rawValue, expected.pointee._value, desired._value)
77
- #elseif _pointerBitWidth(_16)
78
- let (oldValue, won) = Builtin.cmpxchg_seqcst_seqcst_Int16(
79
- target._rawValue, expected.pointee._value, desired._value)
80
77
#else
81
78
#error("Unknown platform")
82
79
#endif
@@ -96,9 +93,6 @@ func _swift_stdlib_atomicLoadInt(
96
93
#elseif _pointerBitWidth(_32)
97
94
let value = Builtin.atomicload_seqcst_Int32(target._rawValue)
98
95
return Int(value)
99
- #elseif _pointerBitWidth(_16)
100
- let value = Builtin.atomicload_seqcst_Int16(target._rawValue)
101
- return Int(value)
102
96
#else
103
97
#error("Unknown platform")
104
98
#endif
@@ -112,8 +106,6 @@ internal func _swift_stdlib_atomicStoreInt(
112
106
Builtin.atomicstore_seqcst_Int64(target._rawValue, desired._value)
113
107
#elseif _pointerBitWidth(_32)
114
108
Builtin.atomicstore_seqcst_Int32(target._rawValue, desired._value)
115
- #elseif _pointerBitWidth(_16)
116
- Builtin.atomicstore_seqcst_Int16(target._rawValue, desired._value)
117
109
#else
118
110
#error("Unknown platform")
119
111
#endif
@@ -136,17 +128,13 @@ func _swift_stdlib_atomicFetch${operation}Int(
136
128
let value = _swift_stdlib_atomicFetch${operation}Int32(
137
129
object: rawTarget.assumingMemoryBound(to: Int32.self),
138
130
operand: Int32(operand))
139
- #elseif _pointerBitWidth(_16)
140
- let value = _swift_stdlib_atomicFetch${operation}Int16(
141
- object: rawTarget.assumingMemoryBound(to: Int16.self),
142
- operand: Int16(operand))
143
131
#else
144
132
#error("Unknown platform")
145
133
#endif
146
134
return Int(value)
147
135
}
148
136
149
- % for bits in [ 16, 32, 64 ]:
137
+ % for bits in [ 32, 64 ]:
150
138
151
139
// Warning: no overflow checking.
152
140
@usableFromInline // used by SwiftPrivate._stdlib_AtomicInt
0 commit comments