Skip to content

Commit

Permalink
Document target_has_atomic
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Feb 16, 2022
1 parent 70fc73a commit a529079
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/conditional-compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,23 @@ Example values:
* `"pc"`
* `"unknown"`

### `target_has_atomic`

Key-value option set for each bit width that the target supports
atomic loads, stores, and compare-and-swap operations.

Notably, this does not mean that the alignment of atomics matches that of equal
bit width integers.

Possible values:

* `"8"`
* `"16"`
* `"32"`
* `"64"`
* `"128"`
* `"ptr"`

### `test`

Enabled when compiling the test harness. Done with `rustc` by using the
Expand Down

0 comments on commit a529079

Please sign in to comment.