about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-13 19:17:04 +0200
committerGitHub <noreply@github.com>2019-10-13 19:17:04 +0200
commit7c20a8ddb8efd3998dc4de049ff69e3161a01788 (patch)
treeca04dbf4f749320ed2a57f7e9a0e97eca43bdd95 /src/libstd/sys
parentaa2ae564d391a3da10bca2a79ab529a9925fbe58 (diff)
parentdfe76a10935cf93fdc72abc47167691b7aa44a7f (diff)
downloadrust-7c20a8ddb8efd3998dc4de049ff69e3161a01788.tar.gz
rust-7c20a8ddb8efd3998dc4de049ff69e3161a01788.zip
Rollup merge of #65214 - Amanieu:cfg_atomic, r=alexcrichton
Split non-CAS atomic support off into target_has_atomic_load_store

This PR implements my proposed changes in https://github.com/rust-lang/rust/issues/32976#issuecomment-518542029 by removing `target_has_atomic = "cas"` and splitting `target_has_atomic` into two separate `cfg`s:

* `target_has_atomic = 8/16/32/64/128`: This indicates the largest width that the target can atomically CAS (which implies support for all atomic operations).
* ` target_has_atomic_load_store = 8/16/32/64/128`: This indicates the largest width that the target can support loading or storing atomically (but may not support CAS).

cc #32976

r? @alexcrichton
Diffstat (limited to 'src/libstd/sys')
0 files changed, 0 insertions, 0 deletions