Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/Atomics/Conformances/AtomicBool.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,12 @@ extension ${construct} where Value == Bool {

extension ${construct} where Value == Bool {
% for (name, iname, op, label, doc) in boolOperations:
/// Perform an atomic ${doc} operation and return the original value, applying
/// Perform an atomic ${doc} operation and return the resulting value, applying
/// the specified memory ordering.
///
/// - Parameter operand: A boolean value.
/// - Parameter ordering: The memory ordering to apply on this operation.
/// - Returns: The original value before the operation.
/// - Returns: The value after the operation.
@_semantics("atomics.requires_constant_orderings")
@_transparent @_alwaysEmitIntoClient
public func ${lowerFirst(name)}ThenLoad(
Expand Down
24 changes: 12 additions & 12 deletions Sources/Atomics/Conformances/autogenerated/AtomicBool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,12 @@ extension UnsafeAtomic where Value == Bool {
}

extension UnsafeAtomic where Value == Bool {
/// Perform an atomic logical AND operation and return the original value, applying
/// Perform an atomic logical AND operation and return the resulting value, applying
/// the specified memory ordering.
///
/// - Parameter operand: A boolean value.
/// - Parameter ordering: The memory ordering to apply on this operation.
/// - Returns: The original value before the operation.
/// - Returns: The value after the operation.
@_semantics("atomics.requires_constant_orderings")
@_transparent @_alwaysEmitIntoClient
public func logicalAndThenLoad(
Expand All @@ -300,12 +300,12 @@ extension UnsafeAtomic where Value == Bool {
return original && operand
}

/// Perform an atomic logical OR operation and return the original value, applying
/// Perform an atomic logical OR operation and return the resulting value, applying
/// the specified memory ordering.
///
/// - Parameter operand: A boolean value.
/// - Parameter ordering: The memory ordering to apply on this operation.
/// - Returns: The original value before the operation.
/// - Returns: The value after the operation.
@_semantics("atomics.requires_constant_orderings")
@_transparent @_alwaysEmitIntoClient
public func logicalOrThenLoad(
Expand All @@ -319,12 +319,12 @@ extension UnsafeAtomic where Value == Bool {
return original || operand
}

/// Perform an atomic logical XOR operation and return the original value, applying
/// Perform an atomic logical XOR operation and return the resulting value, applying
/// the specified memory ordering.
///
/// - Parameter operand: A boolean value.
/// - Parameter ordering: The memory ordering to apply on this operation.
/// - Returns: The original value before the operation.
/// - Returns: The value after the operation.
@_semantics("atomics.requires_constant_orderings")
@_transparent @_alwaysEmitIntoClient
public func logicalXorThenLoad(
Expand Down Expand Up @@ -394,12 +394,12 @@ extension ManagedAtomic where Value == Bool {
}

extension ManagedAtomic where Value == Bool {
/// Perform an atomic logical AND operation and return the original value, applying
/// Perform an atomic logical AND operation and return the resulting value, applying
/// the specified memory ordering.
///
/// - Parameter operand: A boolean value.
/// - Parameter ordering: The memory ordering to apply on this operation.
/// - Returns: The original value before the operation.
/// - Returns: The value after the operation.
@_semantics("atomics.requires_constant_orderings")
@_transparent @_alwaysEmitIntoClient
public func logicalAndThenLoad(
Expand All @@ -413,12 +413,12 @@ extension ManagedAtomic where Value == Bool {
return original && operand
}

/// Perform an atomic logical OR operation and return the original value, applying
/// Perform an atomic logical OR operation and return the resulting value, applying
/// the specified memory ordering.
///
/// - Parameter operand: A boolean value.
/// - Parameter ordering: The memory ordering to apply on this operation.
/// - Returns: The original value before the operation.
/// - Returns: The value after the operation.
@_semantics("atomics.requires_constant_orderings")
@_transparent @_alwaysEmitIntoClient
public func logicalOrThenLoad(
Expand All @@ -432,12 +432,12 @@ extension ManagedAtomic where Value == Bool {
return original || operand
}

/// Perform an atomic logical XOR operation and return the original value, applying
/// Perform an atomic logical XOR operation and return the resulting value, applying
/// the specified memory ordering.
///
/// - Parameter operand: A boolean value.
/// - Parameter ordering: The memory ordering to apply on this operation.
/// - Returns: The original value before the operation.
/// - Returns: The value after the operation.
@_semantics("atomics.requires_constant_orderings")
@_transparent @_alwaysEmitIntoClient
public func logicalXorThenLoad(
Expand Down