Skip to content

Commit ab0da1e

Browse files
committed
Revert "[doc] Atomic.add, .subtract: Add note on codegen"
This reverts commit d52ed4c.
1 parent 9d84b1e commit ab0da1e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

stdlib/public/Synchronization/Atomics/AtomicIntegers.swift.gyb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,6 @@ extension Atomic where Value == ${intType} {
163163
/// overflow does occur. In `-Ounchecked` builds, overflow checking is not
164164
/// performed.
165165
///
166-
/// The need to check for overflow means that this operation is typically
167-
/// compiled into a compare-exchange loop. For use cases that require a
168-
/// direct atomic addition, see the `wrappingAdd` operation: it avoids the
169-
/// loop, but in exchange it allows silent wraps on overflow.
170-
///
171166
/// - Parameter operand: An integer value.
172167
/// - Parameter ordering: The memory ordering to apply on this operation.
173168
/// - Returns: A tuple containing the original value before the operation and
@@ -207,11 +202,6 @@ extension Atomic where Value == ${intType} {
207202
/// overflow does occur. In `-Ounchecked` builds, overflow checking is not
208203
/// performed.
209204
///
210-
/// The need to check for overflow means that this operation is typically
211-
/// compiled into a compare-exchange loop. For use cases that require a
212-
/// direct atomic subtraction, see the `wrappingSubtract` operation: it
213-
/// avoids the loop, but in exchange it allows silent wraps on overflow.
214-
///
215205
/// - Parameter operand: An integer value.
216206
/// - Parameter ordering: The memory ordering to apply on this operation.
217207
/// - Returns: A tuple containing the original value before the operation and

0 commit comments

Comments
 (0)