Skip to content

Commit d32abf0

Browse files
committed
Update notes about atomics
1 parent 41cbadf commit d32abf0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/custom-target.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ You can pretty much copy that output into your file. Start with a few modificati
5454
`"panic-strategy": "abort"`. If you decide not to `abort` on panicking, unless you [tell Cargo
5555
to][eh_personality], you must define an [eh_personality] function.
5656
- Configure atomics. Pick the first option that describes your target:
57-
- I have a single-core processor, no threads, no interrupts, or any way for multiple things to be
58-
happening in parallel: if you are **sure** that is the case, such as WASM (for now), you may set
59-
`"singlethread": true`. This will configure LLVM to convert all atomic operations to use their
60-
single threaded counterparts.
57+
- I have a single-core processor, no threads, **no interrupts**, or any way for multiple things to
58+
be happening in parallel: if you are **sure** that is the case, such as WASM (for now), you may
59+
set `"singlethread": true`. This will configure LLVM to convert all atomic operations to use
60+
their single threaded counterparts.
6161
- I have native atomic operations: set `max-atomic-width` to the biggest type in bits that your
6262
target can operate on atomically. For example, many ARM cores have 32-bit atomic operations. You
6363
may set `"max-atomic-width": 32` in that case.
6464
- I have no native atomic operations, but I can emulate them myself: set `max-atomic-width` to the
65-
highest number of bits that you can emulate up to 64, then implement all of the
65+
highest number of bits that you can emulate up to 128, then implement all of the
6666
[atomic][libcalls-atomic] and [sync][libcalls-atomic] functions expected by LLVM as
6767
`#[no_mangle] unsafe extern "C"`. These functions have been standardized by gcc, so the [gcc
6868
documentation][gcc-sync] may have more notes. Missing functions will cause a linker error, while

0 commit comments

Comments
 (0)