Contents

bitwiseXor(_:ordering:)

Perform an atomic bitwise XOR operation and return the old and new value, applying the specified memory ordering.

Declaration

@discardableResult func bitwiseXor(_ operand: Int64, ordering: AtomicUpdateOrdering) -> (oldValue: Int64, newValue: Int64)

Parameters

  • operand:

    An integer value.

  • ordering:

    The memory ordering to apply on this operation.

Return Value

A tuple containing the original value before the operation and the new value after the operation.