[#BloombergLP-bsls-AtomicOperations_ALL_ALL_ClangIntrinsics-swapInt64AcqRel] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/AtomicOperations_ALL_ALL_ClangIntrinsics.adoc[AtomicOperations_ALL_ALL_ClangIntrinsics]::swapInt64AcqRel :relfileprefix: ../../../ :mrdocs: Atomically swap `atomicInt` with acquire/release ordering. == Synopsis Declared in `<bsls_atomicoperations_all_all_clangintrinsics.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bsls/Types/Int64.adoc[Types::Int64] swapInt64AcqRel( xref:BloombergLP/bsls/Atomic_TypeTraits-0b/Int64.adoc[AtomicTypes::Int64]* atomicInt, xref:BloombergLP/bsls/Types/Int64.adoc[Types::Int64] swapValue); ---- == Description Atomically set the value of the specified `atomicInt` to the specified `swapValue`, and return its previous value, providing the acquire/release memory ordering guarantee. == Return Value previous value of `atomicInt` == Parameters [cols="1,4"] |=== | Name| Description | *atomicInt* | atomic 64‐bit integer to modify | *swapValue* | value to store in `atomicInt` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#