---
title: "bitwiseAnd(_:ordering:)"
framework: synchronization
role: symbol
role_heading: Instance Method
path: "synchronization/atomic/bitwiseand(_:ordering:)-1baj3"
---

# bitwiseAnd(_:ordering:)

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

## Declaration

```swift
@discardableResult func bitwiseAnd(_ operand: UInt128, ordering: AtomicUpdateOrdering) -> (oldValue: UInt128, newValue: UInt128)
```

## Parameters

- `operand`: An integer value.
- `ordering`: The memory ordering to apply on this operation.

## Return Value

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