Skip to content

Commit a529079

Browse files
Document target_has_atomic
1 parent 70fc73a commit a529079

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/conditional-compilation.md

+17
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,23 @@ Example values:
191191
* `"pc"`
192192
* `"unknown"`
193193

194+
### `target_has_atomic`
195+
196+
Key-value option set for each bit width that the target supports
197+
atomic loads, stores, and compare-and-swap operations.
198+
199+
Notably, this does not mean that the alignment of atomics matches that of equal
200+
bit width integers.
201+
202+
Possible values:
203+
204+
* `"8"`
205+
* `"16"`
206+
* `"32"`
207+
* `"64"`
208+
* `"128"`
209+
* `"ptr"`
210+
194211
### `test`
195212

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

0 commit comments

Comments
 (0)