# atomicFetchOr

`import { atomicFetchOr } from "destack:sync";`

Atomic fetch-and-bitwise-or.

Atomically performs bitwise OR of `value` with the value at `ptr`.
Returns the previous value before the operation.

```ds title="atomicFetchOr"
export declare function atomicFetchOr<T: Integer>(ptr: *T, value: T, order: MemoryOrdering, scope: AtomicScope, memoryScope: MemoryScope, regions: MemoryRegionSet, isVolatile: boolean, isMakeAvailable: boolean, isMakeVisible: boolean): T
```

[language/library/src/sync/atomic.ds:339:349](https://github.com/destack-sh/destack/blob/main/language/library/src/sync/atomic.ds#L339-L349)
