Skip to content
Snippets Groups Projects
Commit 5a2400c6 authored by vdukhovni's avatar vdukhovni Committed by Ben Gamari
Browse files

Naming, value types and tests for Addr# atomics

The atomic Exchange and CAS operations on integral types are updated to
take and return more natural `Word#` rather than `Int#` values.  These
are bit-block not arithmetic operations, and the sign bit plays no
special role.

Standardises the names to `atomic<OpType><ValType>Addr#`, where `OpType` is one
of `Cas` or `Exchange` and `ValType` is presently either `Word` or `Addr`.
Eventually, variants for `Word32` and `Word64` can and should be added,
once #11953 and related issues (e.g. #13825) are resolved.

Adds tests for `Addr#` CAS that mirror existing tests for
`MutableByteArray#`.
parent 51b09fe4
No related branches found
No related tags found
3 merge requests!7177More 9.0.2 backports,!4950Fix a long standing bug in constraint solving,!4299Naming, value types and tests for Addr# atomics (9.0 backport)
Pipeline #26712 failed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment