From f395f4deb9a51288c85f27d278a375ade51df029 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Tue, 22 Feb 2022 10:31:24 +0000 Subject: Improve description with @bgamari's suggestion --- compiler/GHC/Builtin/primops.txt.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/GHC/Builtin/primops.txt.pp b/compiler/GHC/Builtin/primops.txt.pp index ce82422789..057048817e 100644 --- a/compiler/GHC/Builtin/primops.txt.pp +++ b/compiler/GHC/Builtin/primops.txt.pp @@ -2332,7 +2332,7 @@ primop CasAddrOp_Word64 "atomicCasWord64Addr#" GenPrimOp primop CasAddrOp2_Word "atomicCas2WordAddr#" GenPrimOp Addr# -> Word# -> Word# -> Word# -> Word# -> State# s -> (# State# s, Word#, Word# #) - { Compare and swap on a 2 word-sized and aligned memory location. Expected + { Compare-and-swap on a pair of words. The location must be aligned to a word boundary. The expected and desired value are passed as two words in little-endian order. Use as: \s -> atomicCas2WordAddr# location expected_lo expected_hi -- cgit v1.2.1