diff options
author | Ben Gamari <ben@well-typed.com> | 2022-02-22 10:31:24 +0000 |
---|---|---|
committer | Peter Trommler <ptrommler@acm.org> | 2022-02-22 10:31:24 +0000 |
commit | f395f4deb9a51288c85f27d278a375ade51df029 (patch) | |
tree | c95dcc0b5e44513d1fa5f4a1bbdaa5eb3a2deee9 | |
parent | 7f954220dcef97defc4bd17d2f71aa9d7e1d7fb6 (diff) | |
download | haskell-wip/T19681-cmpxchg16b.tar.gz |
Improve description with @bgamari's suggestionwip/T19681-cmpxchg16b
-rw-r--r-- | compiler/GHC/Builtin/primops.txt.pp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |